Class Country
java.lang.Object
org.deltava.beans.schedule.Country
- All Implemented Interfaces:
Serializable
,Comparable<Country>
,ComboAlias
A bean to store country names and ISO-3316 codes.
- Since:
- 3.2
- Version:
- 11.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
static Country
Returns a country.static Collection
<Country> getAll()
Returns all Countries.getCode()
Returns the ISO-3316 country code.Returns the alias to use in the HTML <OPTION> element.Returns the visible name to use in the HTML <OPTION> element.Returns the continent.getName()
Returns the country name.int
hashCode()
static void
Initializes a country bean.toString()
-
Field Details
-
INTL
International Airspace. -
UNKNOWN
Unknown Country.
-
-
Method Details
-
init
-
get
Returns a country.- Parameters:
code
- the ISO-3316 country code- Returns:
- a Country, or null if not found
- Throws:
NullPointerException
- if code is null
-
getAll
Returns all Countries.- Returns:
- a Collection of Country beans
-
getCode
-
getName
-
getContinent
-
getComboName
Description copied from interface:ComboAlias
Returns the visible name to use in the HTML <OPTION> element.- Specified by:
getComboName
in interfaceComboAlias
- Returns:
- The visible name for this entry
-
getComboAlias
Description copied from interface:ComboAlias
Returns the alias to use in the HTML <OPTION> element.- Specified by:
getComboAlias
in interfaceComboAlias
- Returns:
- The alias for this entry
-
toString
-
hashCode
-
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Country>
-