@Test public void testEquals() { final StringFilter filter2 = new StringFilter(); 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); filter.setContains(value); assertThat(filter2).isNotEqualTo(filter); filter2.setContains(value); assertThat(filter).isEqualTo(filter2); filter.setDoesNotContain(value); assertThat(filter2).isNotEqualTo(filter); filter2.setDoesNotContain(value); assertThat(filter).isEqualTo(filter2); final StringFilter filter3 = new StringFilter(); 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 StringFilter that = (StringFilter) o; return Objects.equals(contains, that.contains) && Objects.equals(doesNotContain, that.doesNotContain); }
StringFilter extends Filter<String> { @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 StringFilter that = (StringFilter) o; return Objects.equals(contains, that.contains) && Objects.equals(doesNotContain, that.doesNotContain); } }
StringFilter extends Filter<String> { @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 StringFilter that = (StringFilter) o; return Objects.equals(contains, that.contains) && Objects.equals(doesNotContain, that.doesNotContain); } StringFilter();  StringFilter(final StringFilter filter); }
StringFilter extends Filter<String> { @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 StringFilter that = (StringFilter) o; return Objects.equals(contains, that.contains) && Objects.equals(doesNotContain, that.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 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 StringFilter that = (StringFilter) o; return Objects.equals(contains, that.contains) && Objects.equals(doesNotContain, that.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();  }