Package com.iizix.geo
Class RegionLocation.Currency
- java.lang.Object
- com.iizix.geo.RegionLocation.Currency
- Enclosing class:
- RegionLocation
public static class RegionLocation.Currency extends java.lang.ObjectCurrency class holding information about a currency.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Checks if two Language objects are equal.java.lang.StringgetCode()Returns the 3-letter language code for the given currency code, never null.java.lang.StringgetName()Returns the English name of the given currency, null for none.java.lang.StringgetNativeSymbol()Returns the native symbol letter of the given currency, null for none.java.lang.StringgetPluralName()Returns the English plural name of the given currency, null for none.java.lang.StringgetSymbol()Returns the symbol letter of the given currency, null for none.inthashCode()Returns the hash code of the language instance.java.lang.StringtoString()String representation of the language as "[code,name,nativeName]" where the null values are omitted.
Method Detail
getCode
public java.lang.String 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
public java.lang.String getName()
Returns the English name of the given currency, null for none.- Returns:
- The English currency name.
getPluralName
public java.lang.String getPluralName()
Returns the English plural name of the given currency, null for none.- Returns:
- The English plural currency name.
getSymbol
public java.lang.String getSymbol()
Returns the symbol letter of the given currency, null for none.- Returns:
- The currency symbol.
getNativeSymbol
public java.lang.String 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.- Overrides:
hashCodein classjava.lang.Object- Returns:
- The hash code.
equals
public boolean equals(java.lang.Object obj)
Checks if two Language objects are equal.- Overrides:
equalsin classjava.lang.Object- Returns:
- The equality flag.
toString
public java.lang.String toString()
String representation of the language as "[code,name,nativeName]" where the null values are omitted.- Overrides:
toStringin classjava.lang.Object- Returns:
- The string representation.