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 TypeMethodDescriptionintbooleanstatic CountryReturns 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.inthashCode()static voidInitializes 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:ComboAliasReturns the visible name to use in the HTML <OPTION> element.- Specified by:
getComboNamein interfaceComboAlias- Returns:
- The visible name for this entry
-
getComboAlias
Description copied from interface:ComboAliasReturns the alias to use in the HTML <OPTION> element.- Specified by:
getComboAliasin interfaceComboAlias- Returns:
- The alias for this entry
-
toString
-
hashCode
-
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<Country>
-