Package com.iizix.geo
Class RegionLocation.Currency
java.lang.Object
com.iizix.geo.RegionLocation.Currency
- Enclosing class:
RegionLocation
Currency class holding information about a currency.
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if two Language objects are equal.getCode()
Returns the 3-letter language code for the given currency code, never null.getName()
Returns the English name of the given currency, null for none.Returns the native symbol letter of the given currency, null for none.Returns the English plural name of the given currency, null for none.Returns the symbol letter of the given currency, null for none.int
hashCode()
Returns the hash code of the language instance.toString()
String representation of the language as "[code,name,nativeName]" where the null values are omitted.
Method Details
getCode
Returns the 3-letter language code for the given currency code, never null.See the list of all 3-letter currency codes.
- Returns:
- The currency code, never null.
getName
Returns the English name of the given currency, null for none.- Returns:
- The English currency name.
getPluralName
Returns the English plural name of the given currency, null for none.- Returns:
- The English plural currency name.
getSymbol
Returns the symbol letter of the given currency, null for none.- Returns:
- The currency symbol.
getNativeSymbol
Returns the native symbol letter of the given currency, null for none.- Returns:
- The native currency symbol.
hashCode
public int hashCode()Returns the hash code of the language instance.equals
Checks if two Language objects are equal.toString
String representation of the language as "[code,name,nativeName]" where the null values are omitted.