@Test public void testHashCode() { final StringFilter filter2 = new StringFilter(); assertThat(filter.hashCode()).isEqualTo(filter2.hashCode()); filter.setEquals(value); filter2.setEquals(value); assertThat(filter.hashCode()).isEqualTo(filter2.hashCode()); filter.setNotEquals(value); filter2.setNotEquals(value); assertThat(filter.hashCode()).isEqualTo(filter2.hashCode()); filter.setSpecified(false); filter2.setSpecified(false); assertThat(filter.hashCode()).isEqualTo(filter2.hashCode()); filter.setIn(Lists.newArrayList(value, value)); filter2.setIn(Lists.newArrayList(value, value)); assertThat(filter.hashCode()).isEqualTo(filter2.hashCode()); filter.setNotIn(Lists.newArrayList(value, value)); filter2.setNotIn(Lists.newArrayList(value, value)); assertThat(filter.hashCode()).isEqualTo(filter2.hashCode()); filter.setContains(value); filter2.setContains(value); assertThat(filter.hashCode()).isEqualTo(filter2.hashCode()); filter.setDoesNotContain(value); filter2.setDoesNotContain(value); assertThat(filter.hashCode()).isEqualTo(filter2.hashCode()); final StringFilter filter3 = new StringFilter(); filter3.setEquals(value); assertThat(filter3.hashCode()).isNotEqualTo(filter.hashCode()); assertThat(filter3.hashCode()).isNotEqualTo(filter2.hashCode()); }
@Override public int hashCode() { return Objects.hash(super.hashCode(), contains, doesNotContain); }
StringFilter extends Filter<String> { @Override public int hashCode() { return Objects.hash(super.hashCode(), contains, doesNotContain); } }
StringFilter extends Filter<String> { @Override public int hashCode() { return Objects.hash(super.hashCode(), contains, doesNotContain); } StringFilter();  StringFilter(final StringFilter filter); }
StringFilter extends Filter<String> { @Override public int hashCode() { return Objects.hash(super.hashCode(), contains, doesNotContain); } StringFilter();  StringFilter(final StringFilter filter); @Override StringFilter copy(); String getContains(); StringFilter setContains(String contains); String getDoesNotContain(); StringFilter setDoesNotContain(String doesNotContain); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); }
StringFilter extends Filter<String> { @Override public int hashCode() { return Objects.hash(super.hashCode(), contains, doesNotContain); } StringFilter();  StringFilter(final StringFilter filter); @Override StringFilter copy(); String getContains(); StringFilter setContains(String contains); String getDoesNotContain(); StringFilter setDoesNotContain(String doesNotContain); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }