From 158bc1067727316e57574f9c97f08b0e64130859 Mon Sep 17 00:00:00 2001 From: Schankula Christopher <schankuc@mcmaster.ca> Date: Thu, 22 Feb 2018 11:30:52 -0500 Subject: [PATCH] add Species ADT first draft --- src/biotree/Species.java | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/biotree/Species.java diff --git a/src/biotree/Species.java b/src/biotree/Species.java new file mode 100644 index 0000000..268c8c7 --- /dev/null +++ b/src/biotree/Species.java @@ -0,0 +1,37 @@ +package biotree; + +public class Species { + private final String species; + private final String bClass; + private final String order; + private final String family; + private final String genus; + + public Species(String species, String bClass, String order, String family, String genus) { + this.species = species; + this.bClass = bClass; + this.order = order; + this.family = family; + this.genus = genus; + } + + public String getSpecies() { + return this.species; + } + + public String getBClass() { + return this.bClass; + } + + public String getOrder() { + return this.order; + } + + public String getFamily() { + return this.family; + } + + public String getGenus() { + return this.genus; + } +} -- GitLab