Package com.iizix.geo
Class RegionLocation.Language
java.lang.Object
com.iizix.geo.RegionLocation.Language
- Enclosing class:
- RegionLocation
Language class holding information about a language.
- Method SummaryModifier and TypeMethodDescription- booleanChecks if two Language objects are equal.- getCode()Returns the 2-letter language code for the given language.- getName()Returns the English name of the given language, e.g.Returns the native name of the given language, e.g.- 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- getCodeReturns the 2-letter language code for the given language.- See the list of all 2-letter language codes. - Returns:
- The language code, never null.
 
- getNameReturns the English name of the given language, e.g. 'Portuguese', or null for none.- Returns:
- The English language name.
 
- getNativeNameReturns the native name of the given language, e.g. 'Português', or null for none.- Returns:
- The native language name.
 
- hashCodepublic int hashCode()Returns the hash code of the language instance.
- equalsChecks if two Language objects are equal.
- toStringString representation of the language as "[code,name,nativeName]" where the null values are omitted.