|
Golibri | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.golibri.iso.Numeric3CountryCode
The Numeric3CountryCode class represents numeric-3 country codes as specified by the ISO 3166 Standard.
Numeric3CountryCode objects can be created with a String parameter and are immutable.
To create an Numeric3CountryCode object and check whether it exists conform the ISO 3166 Standard one
can use the factory method getCountryCode(String) from org.golibri.iso.Numeric3CountryCodes.
The Numeric3CountryCode class is for working specifically with numeric-3 country codes.
The preferred way to represent countries is with org.golibri.common.contact.Country.
Numeric3CountryCodes,
Country| Constructor Summary | |
Numeric3CountryCode(int countryCode)
Constructor. |
|
Numeric3CountryCode(java.lang.String countryCode)
Constructor. |
|
| Method Summary | |
boolean |
equals(java.lang.Object object)
|
int |
getCountryCode()
Returns the numeric-3 country code as an int |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Numeric3CountryCode(int countryCode)
countryCode - int parameter containing the numeric-3 country code
java.lang.NullPointerException - If the parameter countryCode is null
java.lang.IllegalArgumentException - If the parameter countryCode is not well-formattedpublic Numeric3CountryCode(java.lang.String countryCode)
countryCode - String parameter containing the numeric-3 country code
java.lang.NullPointerException - If the parameter countryCode is null
java.lang.IllegalArgumentException - If the parameter countryCode is not well-formatted| Method Detail |
public int getCountryCode()
public java.lang.String toString()
Object.toString()public int hashCode()
Object.hashCode()public boolean equals(java.lang.Object object)
Object.equals(java.lang.Object)
|
Golibri | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||