@Test public void testEquals() { final RangeFilter<Short> filter2 = new RangeFilter<>(); assertThat(filter).isEqualTo(filter2); filter.setEquals(value); filter2.setEquals(value); assertThat(filter).isEqualTo(filter2); filter.setNotEquals(value); filter2.setNotEquals(value); assertThat(filter).isEqualTo(filter2); filter.setSpecified(false); assertThat(filter2).isNotEqualTo(filter); filter2.setSpecified(false); assertThat(filter).isEqualTo(filter2); filter.setIn(Lists.newArrayList(value, value)); assertThat(filter2).isNotEqualTo(filter); filter2.setIn(Lists.newArrayList(value, value)); assertThat(filter).isEqualTo(filter2); filter.setNotIn(Lists.newArrayList(value, value)); assertThat(filter2).isNotEqualTo(filter); filter2.setNotIn(Lists.newArrayList(value, value)); assertThat(filter).isEqualTo(filter2); filter.setGreaterThan(value); assertThat(filter).isNotEqualTo(filter2); filter2.setGreaterThan(value); assertThat(filter).isEqualTo(filter2); filter.setLessThan(value); assertThat(filter).isNotEqualTo(filter2); filter2.setLessThan(value); assertThat(filter).isEqualTo(filter2); filter.setGreaterThanOrEqual(value); assertThat(filter).isNotEqualTo(filter2); filter2.setGreaterThanOrEqual(value); assertThat(filter).isEqualTo(filter2); filter.setLessThanOrEqual(value); assertThat(filter).isNotEqualTo(filter2); filter2.setLessThanOrEqual(value); assertThat(filter).isEqualTo(filter2); final RangeFilter<Short> filter3 = new RangeFilter<>(); filter3.setEquals(value); assertThat(filter3).isNotEqualTo(filter); assertThat(filter3).isNotEqualTo(filter2); }
@Override public boolean equals(final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } final RangeFilter<?> that = (RangeFilter<?>) o; return Objects.equals(greaterThan, that.greaterThan) && Objects.equals(lessThan, that.lessThan) && Objects.equals(greaterThanOrEqual, that.greaterThanOrEqual) && Objects.equals(lessThanOrEqual, that.lessThanOrEqual); }
RangeFilter extends Filter<FIELD_TYPE> { @Override public boolean equals(final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } final RangeFilter<?> that = (RangeFilter<?>) o; return Objects.equals(greaterThan, that.greaterThan) && Objects.equals(lessThan, that.lessThan) && Objects.equals(greaterThanOrEqual, that.greaterThanOrEqual) && Objects.equals(lessThanOrEqual, that.lessThanOrEqual); } }
RangeFilter extends Filter<FIELD_TYPE> { @Override public boolean equals(final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } final RangeFilter<?> that = (RangeFilter<?>) o; return Objects.equals(greaterThan, that.greaterThan) && Objects.equals(lessThan, that.lessThan) && Objects.equals(greaterThanOrEqual, that.greaterThanOrEqual) && Objects.equals(lessThanOrEqual, that.lessThanOrEqual); } RangeFilter();  RangeFilter(final RangeFilter<FIELD_TYPE> filter); }
RangeFilter extends Filter<FIELD_TYPE> { @Override public boolean equals(final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } final RangeFilter<?> that = (RangeFilter<?>) o; return Objects.equals(greaterThan, that.greaterThan) && Objects.equals(lessThan, that.lessThan) && Objects.equals(greaterThanOrEqual, that.greaterThanOrEqual) && Objects.equals(lessThanOrEqual, that.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 boolean equals(final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } final RangeFilter<?> that = (RangeFilter<?>) o; return Objects.equals(greaterThan, that.greaterThan) && Objects.equals(lessThan, that.lessThan) && Objects.equals(greaterThanOrEqual, that.greaterThanOrEqual) && Objects.equals(lessThanOrEqual, that.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();  }