Package com.iizix.geo

Class RegionLocation.Currency

java.lang.Object
com.iizix.geo.RegionLocation.Currency
Enclosing class:
RegionLocation

public static class RegionLocation.Currency extends Object
Currency class holding information about a currency.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if two Language objects are equal.
    Returns the 3-letter language code for the given currency code, never null.
    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
    Returns the hash code of the language instance.
    String representation of the language as "[code,name,nativeName]" where the null values are omitted.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • getCode

      public 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 String getName()
      Returns the English name of the given currency, null for none.
      Returns:
      The English currency name.
    • getPluralName

      public String getPluralName()
      Returns the English plural name of the given currency, null for none.
      Returns:
      The English plural currency name.
    • getSymbol

      public String getSymbol()
      Returns the symbol letter of the given currency, null for none.
      Returns:
      The currency symbol.
    • getNativeSymbol

      public 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:
      hashCode in class Object
      Returns:
      The hash code.
    • equals

      public boolean equals(Object obj)
      Checks if two Language objects are equal.
      Overrides:
      equals in class Object
      Returns:
      The equality flag.
    • toString

      public String toString()
      String representation of the language as "[code,name,nativeName]" where the null values are omitted.
      Overrides:
      toString in class Object
      Returns:
      The string representation.