@Test public void testHashCode() { StringList entry1 = new StringList("1a", "1b"); StringList entry2 = new StringList("1A", "1B"); Dictionary dictA = getCaseInsensitive(); dictA.put(entry1); Dictionary dictB = getCaseInsensitive(); dictB.put(entry2); Dictionary dictC = getCaseSensitive(); dictC.put(entry1); Dictionary dictD = getCaseSensitive(); dictD.put(entry2); Assert.assertEquals(dictA.hashCode(), dictB.hashCode()); Assert.assertEquals(dictB.hashCode(), dictC.hashCode()); Assert.assertEquals(dictC.hashCode(), dictD.hashCode()); }
@Override public int hashCode() { return entrySet.hashCode(); }
Dictionary implements Iterable<StringList>, SerializableArtifact { @Override public int hashCode() { return entrySet.hashCode(); } }
Dictionary implements Iterable<StringList>, SerializableArtifact { @Override public int hashCode() { return entrySet.hashCode(); } Dictionary();  Dictionary(boolean caseSensitive);  Dictionary(InputStream in); }
Dictionary implements Iterable<StringList>, SerializableArtifact { @Override public int hashCode() { return entrySet.hashCode(); } Dictionary();  Dictionary(boolean caseSensitive);  Dictionary(InputStream in); void put(StringList tokens); int getMinTokenCount(); int getMaxTokenCount(); boolean contains(StringList tokens); void remove(StringList tokens); Iterator<StringList> iterator(); int size(); void serialize(OutputStream out); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static Dictionary parseOneEntryPerLine(Reader in); Set<String> asStringSet(); @Override Class<?> getArtifactSerializerClass(); }
Dictionary implements Iterable<StringList>, SerializableArtifact { @Override public int hashCode() { return entrySet.hashCode(); } Dictionary();  Dictionary(boolean caseSensitive);  Dictionary(InputStream in); void put(StringList tokens); int getMinTokenCount(); int getMaxTokenCount(); boolean contains(StringList tokens); void remove(StringList tokens); Iterator<StringList> iterator(); int size(); void serialize(OutputStream out); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static Dictionary parseOneEntryPerLine(Reader in); Set<String> asStringSet(); @Override Class<?> getArtifactSerializerClass();  }