public interface Lang
Modifier and Type | Method and Description |
---|---|
String |
code()
Full language and country code such as fr or en-gb.
|
String |
country()
Country code.
|
String |
language()
Language code.
|
boolean |
satisfiedBy(Lang other)
Is this Lang satisfied by another Lang.
|
Locale |
toLocale()
This Lang as a Locale.
|
String code()
String language()
String country()
Locale toLocale()
boolean satisfiedBy(Lang other)
This implements the language matching specified by RFC.2616 Section 14.4. Equality is case insensitive as per Section 3.10.
other
- Another Lang