@Test public void testHashCode() { final RangeFilter<Short> filter2 = new RangeFilter<>(); 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.setGreaterThan(value); filter2.setGreaterThan(value); assertThat(filter.hashCode()).isEqualTo(filter2.hashCode()); filter.setLessThan(value); filter2.setLessThan(value); assertThat(filter.hashCode()).isEqualTo(filter2.hashCode()); filter.setGreaterThanOrEqual(value); filter2.setGreaterThanOrEqual(value); assertThat(filter.hashCode()).isEqualTo(filter2.hashCode()); filter.setLessThanOrEqual(value); filter2.setLessThanOrEqual(value); assertThat(filter.hashCode()).isEqualTo(filter2.hashCode()); }
@Override public int hashCode() { return Objects.hash(super.hashCode(), greaterThan, lessThan, greaterThanOrEqual, lessThanOrEqual); }
RangeFilter extends Filter<FIELD_TYPE> { @Override public int hashCode() { return Objects.hash(super.hashCode(), greaterThan, lessThan, greaterThanOrEqual, lessThanOrEqual); } }
RangeFilter extends Filter<FIELD_TYPE> { @Override public int hashCode() { return Objects.hash(super.hashCode(), greaterThan, lessThan, greaterThanOrEqual, lessThanOrEqual); } RangeFilter();  RangeFilter(final RangeFilter<FIELD_TYPE> filter); }
RangeFilter extends Filter<FIELD_TYPE> { @Override public int hashCode() { return Objects.hash(super.hashCode(), greaterThan, lessThan, greaterThanOrEqual, lessThanOrEqual); } RangeFilter();  RangeFilter(final RangeFilter<FIELD_TYPE> filter); @Override RangeFilter<FIELD_TYPE> copy(); FIELD_TYPE getGreaterThan(); RangeFilter<FIELD_TYPE> setGreaterThan(FIELD_TYPE greaterThan); FIELD_TYPE getLessThan(); RangeFilter<FIELD_TYPE> setLessThan(FIELD_TYPE lessThan); FIELD_TYPE getGreaterThanOrEqual(); RangeFilter<FIELD_TYPE> setGreaterThanOrEqual(FIELD_TYPE greaterThanOrEqual); FIELD_TYPE getLessThanOrEqual(); RangeFilter<FIELD_TYPE> setLessThanOrEqual(FIELD_TYPE lessThanOrEqual); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); }
RangeFilter extends Filter<FIELD_TYPE> { @Override public int hashCode() { return Objects.hash(super.hashCode(), greaterThan, lessThan, greaterThanOrEqual, lessThanOrEqual); } RangeFilter();  RangeFilter(final RangeFilter<FIELD_TYPE> filter); @Override RangeFilter<FIELD_TYPE> copy(); FIELD_TYPE getGreaterThan(); RangeFilter<FIELD_TYPE> setGreaterThan(FIELD_TYPE greaterThan); FIELD_TYPE getLessThan(); RangeFilter<FIELD_TYPE> setLessThan(FIELD_TYPE lessThan); FIELD_TYPE getGreaterThanOrEqual(); RangeFilter<FIELD_TYPE> setGreaterThanOrEqual(FIELD_TYPE greaterThanOrEqual); FIELD_TYPE getLessThanOrEqual(); RangeFilter<FIELD_TYPE> setLessThanOrEqual(FIELD_TYPE lessThanOrEqual); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }