Package net.sf.freecol.common.option
Class LanguageOption.Language
- java.lang.Object
-
- net.sf.freecol.common.option.LanguageOption.Language
-
- All Implemented Interfaces:
java.lang.Comparable<LanguageOption.Language>
- Enclosing class:
- LanguageOption
public static class LanguageOption.Language extends java.lang.Object implements java.lang.Comparable<LanguageOption.Language>
-
-
Constructor Summary
Constructors Constructor Description Language(java.lang.String key, java.util.Locale locale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(LanguageOption.Language l)booleanequals(java.lang.Object o)java.lang.StringgetKey()Get the key.java.util.LocalegetLocale()Get the locale.inthashCode()voidsetKey(java.lang.String newKey)Set the key.voidsetLocale(java.util.Locale newLocale)Set the locale.java.lang.StringtoString()
-
-
-
Method Detail
-
getKey
public final java.lang.String getKey()
Get the key.- Returns:
- The key.
-
setKey
public final void setKey(java.lang.String newKey)
Set the key.- Parameters:
newKey- The new key.
-
getLocale
public final java.util.Locale getLocale()
Get the locale.- Returns:
- The
Locale.
-
setLocale
public final void setLocale(java.util.Locale newLocale)
Set the locale.- Parameters:
newLocale- The newLocale.
-
compareTo
public int compareTo(LanguageOption.Language l)
- Specified by:
compareToin interfacejava.lang.Comparable<LanguageOption.Language>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-