com.ibm.websphere.objectgrid.continuousquery.filter
Class EQFilter<AttributeType,MatchType>
java.lang.Object
com.ibm.websphere.objectgrid.continuousquery.filter.AbstractCQFilter<KeyType,ValueType,AttributeType,MatchType>
com.ibm.websphere.objectgrid.continuousquery.filter.CompareFilter<Object,Object,AttributeType,MatchType>
com.ibm.websphere.objectgrid.continuousquery.filter.EQFilter<AttributeType,MatchType>
- Type Parameters:
AttributeType
- Type of the attribute referenced by the attribute pathMatchType
- Type of the object being compared to
- All Implemented Interfaces:
- ContinuousQueryFilter<Object,Object,AttributeType,MatchType>, Serializable
public class EQFilter<AttributeType,MatchType>
- extends CompareFilter<Object,Object,AttributeType,MatchType>
This class checks if an attribute is equal to another object.
- Since:
- 8.6
- See Also:
- Serialized Form
EQFilter
public EQFilter()
- Constructor for serialization only.
EQFilter
public EQFilter(String attributePath,
MatchType object)
- See Also:
CompareFilter.CompareFilter(String, Object)
filter
public boolean filter(FilterContent content)
throws ContinuousQueryException
- Description copied from interface:
ContinuousQueryFilter
- Checks if the supplied object passes the filter.
- Parameters:
content
- A representation of the cache entry to be checked
- Returns:
- true if the object matches the filtering criteria, false otherwise
- Throws:
ContinuousQueryException
- See Also:
ContinuousQueryFilter.filter(FilterContent)
createString
public String createString()
- Description copied from class:
AbstractCQFilter
- Creates a string representation of the continuous query filter, this method is
used by AbstractCQFilter.toString().
The string will be used for identifying and comparing filters,
i.e. it will be used in AbstractCQFilter.hashCode() and AbstractCQFilter.equals(Object),
so the returned value must be in unique format among all filters
in the system.
- Specified by:
createString
in class AbstractCQFilter<Object,Object,AttributeType,MatchType>
- Returns:
- " ==