gov.nih.nci.caarray.domain.country
Class Country
java.lang.Object
gov.nih.nci.caarray.domain.AbstractCaArrayObject
gov.nih.nci.caarray.domain.AbstractCaArrayEntity
gov.nih.nci.caarray.domain.country.Country
- All Implemented Interfaces:
- com.fiveamsolutions.nci.commons.data.persistent.PersistentObject, java.io.Serializable, java.lang.Comparable<Country>
public class Country
- extends AbstractCaArrayEntity
- implements java.lang.Comparable<Country>
- Author:
- John Hedden
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Country
public Country()
getCode
public java.lang.String getCode()
- Returns:
- the code
setCode
public void setCode(java.lang.String code)
- Parameters:
code
- the code to set
getName
public java.lang.String getName()
- Returns:
- the name
setName
public void setName(java.lang.String name)
- Parameters:
name
- the name to set
getPrintableName
public java.lang.String getPrintableName()
- Returns:
- the printable_name
setPrintableName
public void setPrintableName(java.lang.String printableName)
- Parameters:
printableName
- the printable_name to set
getIso3
public java.lang.String getIso3()
- Returns:
- the iso3
setIso3
public void setIso3(java.lang.String iso3)
- Parameters:
iso3
- the iso3 to set
getNumcode
public java.lang.String getNumcode()
- Returns:
- the numcode
setNumcode
public void setNumcode(java.lang.String numcode)
- Parameters:
numcode
- the numcode to set
compareTo
public int compareTo(Country o)
- Compares countries by name, putting a preferred country ahead of all others.
- Specified by:
compareTo
in interface java.lang.Comparable<Country>
- Parameters:
o
- other country to compare to
- Returns:
- result of comparison