@Test public void identityLanguagePivot() { LanguageIndex index = new LanguageIndex.Builder() .add(lp("it en")) .add(lp("en it")) .build(false); assertEquals(lpset("it en", "en it"), index.getLanguages()); index = new LanguageIndex.Builder() .add(lp("it en")) .add(lp("en it")) .build(true); assertEquals(lpset("it en", "en it"), index.getLanguages()); }
public Set<LanguageDirection> getLanguages() { return languages; }
LanguageIndex { public Set<LanguageDirection> getLanguages() { return languages; } }
LanguageIndex { public Set<LanguageDirection> getLanguages() { return languages; } private  LanguageIndex(Map<SimpleLanguageDirection, List<LanguageDirection>> index, Map<String, List<LanguageRule>> rules, Map<LanguageDirection, LanguageBridge> pivots); }
LanguageIndex { public Set<LanguageDirection> getLanguages() { return languages; } private  LanguageIndex(Map<SimpleLanguageDirection, List<LanguageDirection>> index, Map<String, List<LanguageRule>> rules, Map<LanguageDirection, LanguageBridge> pivots); Set<LanguageDirection> getLanguages(); int size(); LanguageDirection asSingleLanguagePair(); boolean hasPivotLanguage(LanguageDirection direction); LanguageBridge getLanguageBridge(LanguageDirection direction); LanguageDirection map(LanguageDirection pair); LanguageDirection mapIgnoringDirection(LanguageDirection pair); @Override String toString(); }
LanguageIndex { public Set<LanguageDirection> getLanguages() { return languages; } private  LanguageIndex(Map<SimpleLanguageDirection, List<LanguageDirection>> index, Map<String, List<LanguageRule>> rules, Map<LanguageDirection, LanguageBridge> pivots); Set<LanguageDirection> getLanguages(); int size(); LanguageDirection asSingleLanguagePair(); boolean hasPivotLanguage(LanguageDirection direction); LanguageBridge getLanguageBridge(LanguageDirection direction); LanguageDirection map(LanguageDirection pair); LanguageDirection mapIgnoringDirection(LanguageDirection pair); @Override String toString();  }