@Test public void testHashCode() { Assert.assertEquals(new StringList("a", "b").hashCode(), new StringList("a", "b").hashCode()); Assert.assertNotEquals(new StringList("a", "b").hashCode(), new StringList("a", "c").hashCode()); }
@Override public int hashCode() { return Arrays.hashCode(tokens); }
StringList implements Iterable<String> { @Override public int hashCode() { return Arrays.hashCode(tokens); } }
StringList implements Iterable<String> { @Override public int hashCode() { return Arrays.hashCode(tokens); } StringList(String singleToken);  StringList(String... tokens); }
StringList implements Iterable<String> { @Override public int hashCode() { return Arrays.hashCode(tokens); } StringList(String singleToken);  StringList(String... tokens); String getToken(int index); int size(); Iterator<String> iterator(); boolean compareToIgnoreCase(StringList tokens); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
StringList implements Iterable<String> { @Override public int hashCode() { return Arrays.hashCode(tokens); } StringList(String singleToken);  StringList(String... tokens); String getToken(int index); int size(); Iterator<String> iterator(); boolean compareToIgnoreCase(StringList tokens); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }