@Test public void testToString() { filter.setEquals(value); filter.setNotEquals(value); filter.setSpecified(true); filter.setIn(new LinkedList<>()); filter.setNotIn(new LinkedList<>()); filter.setContains(value); filter.setDoesNotContain(value); String str = value; assertThat(filter.toString()).isEqualTo("StringFilter [equals=" + str + ", notEquals=" + str + ", specified=true, in=[], notIn=[], contains=" + str + ", doesNotContain=" + str + "]"); }
@Override public String toString() { return getFilterName() + " [" + (getEquals() != null ? "equals=" + getEquals() + ", " : "") + (getNotEquals() != null ? "notEquals=" + getNotEquals() + ", " : "") + (getSpecified() != null ? "specified=" + getSpecified() + ", " : "") + (getIn() != null ? "in=" + getIn() + ", " : "") + (getNotIn() != null ? "notIn=" + getNotIn() + ", " : "") + (getContains() != null ? "contains=" + getContains() + ", " : "") + (getDoesNotContain() != null ? "doesNotContain=" + getDoesNotContain() : "") + "]"; }
StringFilter extends Filter<String> { @Override public String toString() { return getFilterName() + " [" + (getEquals() != null ? "equals=" + getEquals() + ", " : "") + (getNotEquals() != null ? "notEquals=" + getNotEquals() + ", " : "") + (getSpecified() != null ? "specified=" + getSpecified() + ", " : "") + (getIn() != null ? "in=" + getIn() + ", " : "") + (getNotIn() != null ? "notIn=" + getNotIn() + ", " : "") + (getContains() != null ? "contains=" + getContains() + ", " : "") + (getDoesNotContain() != null ? "doesNotContain=" + getDoesNotContain() : "") + "]"; } }
StringFilter extends Filter<String> { @Override public String toString() { return getFilterName() + " [" + (getEquals() != null ? "equals=" + getEquals() + ", " : "") + (getNotEquals() != null ? "notEquals=" + getNotEquals() + ", " : "") + (getSpecified() != null ? "specified=" + getSpecified() + ", " : "") + (getIn() != null ? "in=" + getIn() + ", " : "") + (getNotIn() != null ? "notIn=" + getNotIn() + ", " : "") + (getContains() != null ? "contains=" + getContains() + ", " : "") + (getDoesNotContain() != null ? "doesNotContain=" + getDoesNotContain() : "") + "]"; } StringFilter();  StringFilter(final StringFilter filter); }
StringFilter extends Filter<String> { @Override public String toString() { return getFilterName() + " [" + (getEquals() != null ? "equals=" + getEquals() + ", " : "") + (getNotEquals() != null ? "notEquals=" + getNotEquals() + ", " : "") + (getSpecified() != null ? "specified=" + getSpecified() + ", " : "") + (getIn() != null ? "in=" + getIn() + ", " : "") + (getNotIn() != null ? "notIn=" + getNotIn() + ", " : "") + (getContains() != null ? "contains=" + getContains() + ", " : "") + (getDoesNotContain() != null ? "doesNotContain=" + getDoesNotContain() : "") + "]"; } 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 String toString() { return getFilterName() + " [" + (getEquals() != null ? "equals=" + getEquals() + ", " : "") + (getNotEquals() != null ? "notEquals=" + getNotEquals() + ", " : "") + (getSpecified() != null ? "specified=" + getSpecified() + ", " : "") + (getIn() != null ? "in=" + getIn() + ", " : "") + (getNotIn() != null ? "notIn=" + getNotIn() + ", " : "") + (getContains() != null ? "contains=" + getContains() + ", " : "") + (getDoesNotContain() != null ? "doesNotContain=" + getDoesNotContain() : "") + "]"; } 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();  }