public class MarshalledLocale extends Object implements Serializable
Locale.| Modifier | Constructor and Description |
|---|---|
protected |
MarshalledLocale()
Creates a new marshalled form.
|
|
MarshalledLocale(Locale locale)
Creates a new marshalled form for the locale given in its raw
form.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
String |
getCountry()
Returns the receiver's country.
|
String |
getLanguage()
Returns the receiver's language.
|
String |
getVariant()
Returns the receiver's variant.
|
int |
hashCode() |
void |
setCountry(String country)
Set the receiver's country to the given one.
|
void |
setLanguage(String language)
Set the receiver's language to the given one.
|
void |
setVariant(String variant)
Set the receiver's variant to the given one.
|
Locale |
toLocale()
Returns the raw form of the receiver.
|
String |
toString() |
public MarshalledLocale(Locale locale)
locale - The locale, which may be null.protected MarshalledLocale()
public void setLanguage(String language)
language - The language.public String getLanguage()
public void setCountry(String country)
country - The country.public String getCountry()
public void setVariant(String variant)
variant - The variant.public String getVariant()
public Locale toLocale()
Copyright © 2015. All Rights Reserved.