Package | Description |
---|---|
java.util |
Contains the collections framework, legacy collection classes, event model,
date and time facilities, internationalization, and miscellaneous utility
classes (a string tokenizer, a random-number generator, and a bit array).
|
Modifier and Type | Method and Description |
---|---|
static Locale.FilteringMode |
Locale.FilteringMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Locale.FilteringMode[] |
Locale.FilteringMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static List<Locale> |
Locale.filter(List<Locale.LanguageRange> priorityList,
Collection<Locale> locales,
Locale.FilteringMode mode)
Returns a list of matching
Locale instances using the filtering
mechanism defined in RFC 4647. |
static List<String> |
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.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2024, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.