corina
Class Species
java.lang.Object
|
+--corina.Species
- public class Species
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
species
public static Properties species
common
public static List common
Species
public Species()
getCode
public static String getCode(String s)
throws UnknownSpeciesException
getName
public static String getName(String c)
throws UnknownSpeciesException
- Look up a code in the list, and return its Latin name.
- Parameters:
c
- the code to look up; usually 4 letters, all upper-case- Returns:
- the Latin name of that species
- Throws:
UnknownSpeciesException
- if the code isn't in the list
stringAlmostEquals
public static boolean stringAlmostEquals(String s1,
String s2)
closestSpecies
public static String closestSpecies(String s)
throws UnknownSpeciesException