public class LanguagePairUtil extends Object
Constructor and Description |
---|
LanguagePairUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addBidirectionalPair(Collection<LanguagePair> pairs,
Language l1,
Language l2) |
static void |
addBidirectionalRoundrobinformedPairs(Collection<LanguagePair> pairs,
Language... languages) |
static void |
addBidirectionalStarformedPairs(Collection<LanguagePair> pairs,
Language centerLang,
Language[] termLangs) |
static void |
addPair(Collection<LanguagePair> pairs,
Language sourceLang,
Language targetLang) |
static String[] |
encodeLanguagePairArray(Collection<LanguagePair> pairs) |
public static String[] encodeLanguagePairArray(Collection<LanguagePair> pairs)
public static void addPair(Collection<LanguagePair> pairs, Language sourceLang, Language targetLang)
public static void addBidirectionalPair(Collection<LanguagePair> pairs, Language l1, Language l2)
public static void addBidirectionalStarformedPairs(Collection<LanguagePair> pairs, Language centerLang, Language[] termLangs)
public static void addBidirectionalRoundrobinformedPairs(Collection<LanguagePair> pairs, Language... languages)