@Test public void testHashCode() { final Filter<Object> filter2 = new Filter<>(); 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()); final Filter<Object> filter3 = new Filter<>(); filter3.setEquals(value); assertThat(filter3.hashCode()).isNotEqualTo(filter.hashCode()); assertThat(filter3.hashCode()).isNotEqualTo(filter2.hashCode()); }
@Override public int hashCode() { return Objects.hash(equals, notEquals, specified, in, notIn); }
Filter implements Serializable { @Override public int hashCode() { return Objects.hash(equals, notEquals, specified, in, notIn); } }
Filter implements Serializable { @Override public int hashCode() { return Objects.hash(equals, notEquals, specified, in, notIn); } Filter();  Filter(Filter<FIELD_TYPE> filter); }
Filter implements Serializable { @Override public int hashCode() { return Objects.hash(equals, notEquals, specified, in, notIn); } Filter();  Filter(Filter<FIELD_TYPE> filter); Filter<FIELD_TYPE> copy(); FIELD_TYPE getEquals(); Filter<FIELD_TYPE> setEquals(FIELD_TYPE equals); FIELD_TYPE getNotEquals(); Filter<FIELD_TYPE> setNotEquals(FIELD_TYPE notEquals); Boolean getSpecified(); Filter<FIELD_TYPE> setSpecified(Boolean specified); List<FIELD_TYPE> getIn(); Filter<FIELD_TYPE> setIn(List<FIELD_TYPE> in); List<FIELD_TYPE> getNotIn(); Filter<FIELD_TYPE> setNotIn(List<FIELD_TYPE> notIn); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); }
Filter implements Serializable { @Override public int hashCode() { return Objects.hash(equals, notEquals, specified, in, notIn); } Filter();  Filter(Filter<FIELD_TYPE> filter); Filter<FIELD_TYPE> copy(); FIELD_TYPE getEquals(); Filter<FIELD_TYPE> setEquals(FIELD_TYPE equals); FIELD_TYPE getNotEquals(); Filter<FIELD_TYPE> setNotEquals(FIELD_TYPE notEquals); Boolean getSpecified(); Filter<FIELD_TYPE> setSpecified(Boolean specified); List<FIELD_TYPE> getIn(); Filter<FIELD_TYPE> setIn(List<FIELD_TYPE> in); List<FIELD_TYPE> getNotIn(); Filter<FIELD_TYPE> setNotIn(List<FIELD_TYPE> notIn); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }