public class LanguagePathUtil extends Object
Constructor and Description |
---|
LanguagePathUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addBidirectionalStarformedPairs(Collection<LanguagePair> pairs,
Language centerLang,
Language[] termLangs) |
static Set<LanguagePair> |
createSourceTargetPairSet(LanguagePath[] paths) |
static LanguagePath |
decodeLanguagePath(String value) |
static LanguagePath[] |
decodeLanguagePathArray(String line) |
static String |
encodeLanguagePath(LanguagePath value) |
static String |
encodeLanguagePathArray(LanguagePath... value) |
static String |
encodeToSimplifiedExpressionByCode(LanguagePath[] paths) |
static String |
encodeToSimplifiedExpressionByName(LanguagePath[] paths,
Locale locale) |
static String |
joinCodes(LanguagePath path,
String separator) |
public static String joinCodes(LanguagePath path, String separator)
public static Set<LanguagePair> createSourceTargetPairSet(LanguagePath[] paths)
public static void addBidirectionalStarformedPairs(Collection<LanguagePair> pairs, Language centerLang, Language[] termLangs)
public static String encodeLanguagePath(LanguagePath value)
public static LanguagePath decodeLanguagePath(String value) throws InvalidLanguageTagException, InvalidLanguagePathException
public static String encodeLanguagePathArray(LanguagePath... value)
public static LanguagePath[] decodeLanguagePathArray(String line) throws InvalidLanguageTagException, InvalidLanguagePathException
public static String encodeToSimplifiedExpressionByCode(LanguagePath[] paths)
public static String encodeToSimplifiedExpressionByName(LanguagePath[] paths, Locale locale)