Package com.iizix.geo

Class RegionLocation.Language

  • Enclosing class:
    RegionLocation

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

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      booleanequals​(java.lang.Object obj)
      Checks if two Language objects are equal.
      java.lang.StringgetCode()
      Returns the 2-letter language code for the given language.
      java.lang.StringgetName()
      Returns the English name of the given language, e.g.
      java.lang.StringgetNativeName()
      Returns the native name of the given language, e.g.
      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.
      • 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 2-letter language code for the given language.

        See the list of all 2-letter language codes.

        Returns:
        The language code, never null.
      • getName

        public java.lang.String getName()
        Returns the English name of the given language, e.g. 'Portuguese', or null for none.
        Returns:
        The English language name.
      • getNativeName

        public java.lang.String getNativeName()
        Returns the native name of the given language, e.g. 'Português', or null for none.
        Returns:
        The native language name.
      • 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.