Uses of Class
java.util.Locale.LanguageRange
Package
Description
Contains the collections framework, some internationalization support classes,
a service loader, properties, random number generation, string parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
-
Uses of Locale.LanguageRange in java.util
Modifier and TypeMethodDescriptionstatic List
<Locale.LanguageRange> Locale.LanguageRange.mapEquivalents
(List<Locale.LanguageRange> priorityList, Map<String, List<String>> map) Generates a new customized Language Priority List using the givenpriorityList
andmap
.static List
<Locale.LanguageRange> Parses the givenranges
to generate a Language Priority List.static List
<Locale.LanguageRange> Parses the givenranges
to generate a Language Priority List, and then customizes the list using the givenmap
.Modifier and TypeMethodDescriptionLocale.filter
(List<Locale.LanguageRange> priorityList, Collection<Locale> locales) Returns a list of matchingLocale
instances using the filtering mechanism defined in RFC 4647.Locale.filter
(List<Locale.LanguageRange> priorityList, Collection<Locale> locales, Locale.FilteringMode mode) Returns a list of matchingLocale
instances using the filtering mechanism defined in RFC 4647.Locale.filterTags
(List<Locale.LanguageRange> priorityList, Collection<String> tags) Returns a list of matching languages tags using the basic filtering mechanism defined in RFC 4647.Locale.filterTags
(List<Locale.LanguageRange> priorityList, Collection<String> tags, Locale.FilteringMode mode) Returns a list of matching languages tags using the basic filtering mechanism defined in RFC 4647.static Locale
Locale.lookup
(List<Locale.LanguageRange> priorityList, Collection<Locale> locales) Returns aLocale
instance for the best-matching language tag using the lookup mechanism defined in RFC 4647.static String
Locale.lookupTag
(List<Locale.LanguageRange> priorityList, Collection<String> tags) Returns the best-matching language tag using the lookup mechanism defined in RFC 4647.static List
<Locale.LanguageRange> Locale.LanguageRange.mapEquivalents
(List<Locale.LanguageRange> priorityList, Map<String, List<String>> map) Generates a new customized Language Priority List using the givenpriorityList
andmap
.