@Test public void testEquals() { EqualsFilter filter = new EqualsFilter("a", "b"); AndFilter originalObject = new AndFilter().and(filter); AndFilter identicalObject = new AndFilter().and(filter); AndFilter differentObject = new AndFilter().and(new EqualsFilter("b", "b")); AndFilter subclassObject = new AndFilter() { }.and(filter); new EqualsTester(originalObject, identicalObject, differentObject, subclassObject); }
public AndFilter and(Filter query) { append(query); return this; }
AndFilter extends BinaryLogicalFilter { public AndFilter and(Filter query) { append(query); return this; } }
AndFilter extends BinaryLogicalFilter { public AndFilter and(Filter query) { append(query); return this; }  }
AndFilter extends BinaryLogicalFilter { public AndFilter and(Filter query) { append(query); return this; }  AndFilter and(Filter query); }
AndFilter extends BinaryLogicalFilter { public AndFilter and(Filter query) { append(query); return this; }  AndFilter and(Filter query);  }