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 int
compareTo(LanguageOption.Language l)
boolean
equals(java.lang.Object o)
java.lang.String
getKey()
Get the key.java.util.Locale
getLocale()
Get the locale.int
hashCode()
void
setKey(java.lang.String newKey)
Set the key.void
setLocale(java.util.Locale newLocale)
Set the locale.java.lang.String
toString()
-
-
-
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:
compareTo
in interfacejava.lang.Comparable<LanguageOption.Language>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-