StartsWithFilter extends    ComparisonFilter implements Condition, IndexAwareFilter, Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } StartsWithFilter that = (StartsWithFilter) o; return m_ignoreCase == that.m_ignoreCase && super.equals(o); } StartsWithFilter();  StartsWithFilter(String propertyName, String filter, boolean ignoreCase);  StartsWithFilter(ValueExtractor extractor, String filter, boolean ignoreCase); int calculateEffectiveness(Map mapIndexes, Set setKeys); Filter applyIndex(Map mapIndexes, Set setKeys); 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 StartsWithFilter("name", "s", true); assertTrue(o.equals(o)); assertFalse(o.equals(null)); assertFalse(o.equals("invalid class")); assertFalse(o.equals(new StartsWithFilter("code", "S", true))); }