com.ibm.websphere.objectgrid.continuousquery.filter
Class NotFilter
java.lang.Object
com.ibm.websphere.objectgrid.continuousquery.filter.AbstractCQFilter<Object,Object,Object,Object>
com.ibm.websphere.objectgrid.continuousquery.filter.NotFilter
- All Implemented Interfaces:
- ContinuousQueryFilter<Object,Object,Object,Object>, Serializable
public class NotFilter
- extends AbstractCQFilter<Object,Object,Object,Object>
This class negates the result of a ContinuousQueryFilter
.
- Since:
- 8.6
- See Also:
- Serialized Form
NotFilter
public NotFilter()
NotFilter
public NotFilter(ContinuousQueryFilter f)
- Construct a new filter which will invert the result of its child filter
- Parameters:
f
- the child filter to be evaluated and inverted
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,Object,Object>
- Returns:
- "!",
where refers to the string representation of AbstractCQFilter.
- See Also:
AbstractCQFilter.createString()
© Copyright International Business Machines Corp 2005,2012. All rights reserved.