Package com.iizix.geo

Class RegionLocation.Currency

  • Enclosing class:
    RegionLocation

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Checks if two Language objects are equal.
      java.lang.String getCode()
      Returns the 3-letter language code for the given currency code, never null.
      java.lang.String getName()
      Returns the English name of the given currency, null for none.
      java.lang.String getNativeSymbol()
      Returns the native symbol letter of the given currency, null for none.
      java.lang.String getPluralName()
      Returns the English plural name of the given currency, null for none.
      java.lang.String getSymbol()
      Returns the symbol letter of the given currency, null for none.
      int hashCode()
      Returns the hash code of the language instance.
      java.lang.String toString()
      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 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:
        hashCode in class java.lang.Object
        Returns:
        The hash code.
      • equals

        public boolean equals​(java.lang.Object obj)
        Checks if two Language objects are equal.
        Overrides:
        equals in class java.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:
        toString in class java.lang.Object
        Returns:
        The string representation.