-
- All Implemented Interfaces:
@Serializable(with = Language.Serializer.class) public final class Language
Represents a language with its region.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classLanguage.Serializer
-
Method Summary
Modifier and Type Method Description final StringgetCode()BCP-47 language code. final LocalegetLocale()final BooleanisRegional()Indicates whether this language is a regional variant. final LanguageremoveRegion()Returns this Language after stripping the region. StringtoString()Booleanequals(Object other)IntegerhashCode()-
-
Method Detail
-
isRegional
final Boolean isRegional()
Indicates whether this language is a regional variant.
-
removeRegion
final Language removeRegion()
Returns this Language after stripping the region.
-
-
-
-