public class TranslatorSpecification extends Object implements Comparable<TranslatorSpecification>
Constructor and Description |
---|
TranslatorSpecification(String locale,
String mode)
Creates a new translator specification with the supplied values.
|
TranslatorSpecification(String locale,
TranslatorMode mode)
Creates a new translator specification with the supplied values.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TranslatorSpecification o) |
boolean |
equals(Object obj) |
String |
getLocale()
Gets the locale.
|
String |
getMode()
Gets the translator mode.
|
TranslatorMode |
getModeDetails()
Gets the translator mode details.
|
int |
hashCode() |
String |
toString() |
public TranslatorSpecification(String locale, String mode)
locale
- a locale as defined by IETF RFC 3066mode
- a translator modeIllegalArgumentException
- if null/empty values are insertedpublic TranslatorSpecification(String locale, TranslatorMode mode)
locale
- a locale as defined by IETF RFC 3066mode
- a translator modeIllegalArgumentException
- if null/empty values are insertedpublic String getLocale()
public String getMode()
public TranslatorMode getModeDetails()
public int compareTo(TranslatorSpecification o)
compareTo
in interface Comparable<TranslatorSpecification>