@MappedSuperclass public class Locale extends ModelObject implements Cloneable, Serializable, Localizable
Locale
.
Embeddable
, please note in JPA unique constraint including embedded instance columns are problematic.
Constructor and Description |
---|
Locale() |
Locale(Locale locale) |
Locale(Locale locale) |
Locale(String json) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCountry()
Country or Region.
|
static Locale |
getInstance() |
String |
getLanguage()
Language code
|
Locale |
getLocale() |
static Locale |
getLocale(String language,
String country,
String variant) |
String |
getRegion()
Country or Region.
|
String |
getVariant() |
int |
hashCode() |
void |
setCountry(Locale l) |
void |
setCountry(String country) |
void |
setLanguage(String language) |
void |
setLocale(Locale locale) |
void |
setVariant(String variant) |
String |
toString() |
public Locale()
public Locale(String json)
public Locale(Locale locale)
public Locale(Locale locale)
public static Locale getInstance()
public String getLanguage()
public String getRegion()
country
getCountry()
public String getVariant()
public void setLanguage(String language)
public void setCountry(String country)
public void setCountry(Locale l)
public void setVariant(String variant)
public Locale getLocale()
getLocale
in interface Localizable
public void setLocale(Locale locale)
setLocale
in interface Localizable
Copyright © 2018. All rights reserved.