@Test public void testEquals() { final Filter<Object> filter2 = new Filter<>(); assertThat(filter).isEqualTo(filter2); filter.setEquals(value); assertThat(filter2).isNotEqualTo(filter); filter2.setEquals(value); assertThat(filter).isEqualTo(filter2); filter.setNotEquals(value); assertThat(filter2).isNotEqualTo(filter); 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); final Filter<Object> filter3 = new Filter<>(); 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; } final Filter<?> filter = (Filter<?>) o; return Objects.equals(equals, filter.equals) && Objects.equals(notEquals, filter.notEquals) && Objects.equals(specified, filter.specified) && Objects.equals(in, filter.in) && Objects.equals(notIn, filter.notIn); }
Filter implements Serializable { @Override public boolean equals(final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final Filter<?> filter = (Filter<?>) o; return Objects.equals(equals, filter.equals) && Objects.equals(notEquals, filter.notEquals) && Objects.equals(specified, filter.specified) && Objects.equals(in, filter.in) && Objects.equals(notIn, filter.notIn); } }
Filter implements Serializable { @Override public boolean equals(final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final Filter<?> filter = (Filter<?>) o; return Objects.equals(equals, filter.equals) && Objects.equals(notEquals, filter.notEquals) && Objects.equals(specified, filter.specified) && Objects.equals(in, filter.in) && Objects.equals(notIn, filter.notIn); } Filter();  Filter(Filter<FIELD_TYPE> filter); }
Filter implements Serializable { @Override public boolean equals(final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final Filter<?> filter = (Filter<?>) o; return Objects.equals(equals, filter.equals) && Objects.equals(notEquals, filter.notEquals) && Objects.equals(specified, filter.specified) && Objects.equals(in, filter.in) && Objects.equals(notIn, filter.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 boolean equals(final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final Filter<?> filter = (Filter<?>) o; return Objects.equals(equals, filter.equals) && Objects.equals(notEquals, filter.notEquals) && Objects.equals(specified, filter.specified) && Objects.equals(in, filter.in) && Objects.equals(notIn, filter.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();  }