public static final class CompareBIDirect.Equal extends CompareBIDirect
Compare
filter that accepts items for which the identified
property value is equal to value
.
For in-memory filters, Comparable.compareTo(Object)
or, if not
Comparable, CompareBIDirect.equals(Object)
is used for the comparison. For other
containers, the comparison implementation is container dependent and may
use e.g. database comparison operations.CompareBIDirect.Equal
Constructor and Description |
---|
Equal(Object propertyId,
Object value)
Construct a filter that accepts items for which the identified
property value is equal to
value . |
appliesToProperty, equals, getPropertyId, getValue, hashCode, passesFilter
public Equal(Object propertyId, Object value)
value
.
For in-memory filters, equals() is used for the comparison. For other
containers, the comparison implementation is container dependent and
may use e.g. database comparison operations.propertyId
- the identifier of the property whose value to compare
against value, not nullvalue
- the value to compare against - null values may or may not
be supported depending on the container