Modifier and Type | Method and Description |
---|---|
static LangTag |
LangTagUtils.extract(String s)
Extracts the language tag, if any is found, from the specified
string.
|
static LangTag |
LangTag.parse(String s)
Parses the specified string representation of a language tag.
|
static LangTag[] |
LangTagUtils.parseLangTagArray(String... values)
Parses a language tag array from the specified string values.
|
Modifier and Type | Method and Description |
---|---|
static <T> Map<LangTag,T> |
LangTagUtils.find(String baseName,
Map<String,T> map)
Finds all language-tagged entries with the specified base name.
|
static List<LangTag> |
LangTagUtils.parseLangTagList(Collection<String> collection)
Parses a language tag list from the specified string collection.
|
static List<LangTag> |
LangTagUtils.parseLangTagList(String... values)
Parses a language tag list from the specified string values.
|
static Map.Entry<String,LangTag> |
LangTagUtils.split(String s)
Splits the specified optionally language tagged string into a string
and language tag pair.
|
Modifier and Type | Method and Description |
---|---|
static String[] |
LangTagUtils.toStringArray(Collection<LangTag> langTags)
Returns a string array representation of the specified language tags
collection.
|
static List<String> |
LangTagUtils.toStringList(Collection<LangTag> langTags)
Returns a string list representation of the specified language tags
collection.
|
Copyright © 2020 Connect2id Ltd.. All rights reserved.