AnyWordStartsWithFilter extends ComparisonFilter implements Condition, Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } AnyWordStartsWithFilter that = (AnyWordStartsWithFilter) o; return ignoreCase == that.ignoreCase && super.equals(o); } AnyWordStartsWithFilter();  AnyWordStartsWithFilter(String propertyName, String filter, boolean ignoreCase);  AnyWordStartsWithFilter(ValueExtractor extractor, String filter, boolean ignoreCase); void readExternal(DataInput in); void writeExternal(DataOutput out); void readExternal(PofReader reader); void writeExternal(PofWriter writer); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test @SuppressWarnings("ObjectEqualsNull") public void testEquals() { Object o = new AnyWordStartsWithFilter("name", "s", true); assertTrue(o.equals(o)); assertFalse(o.equals(null)); assertFalse(o.equals("invalid class")); assertFalse(o.equals(new AnyWordStartsWithFilter("code", "S", true))); }