Package net.sf.ehcache.search.expression
Class AlwaysMatch
- java.lang.Object
-
- net.sf.ehcache.search.expression.BaseCriteria
-
- net.sf.ehcache.search.expression.AlwaysMatch
-
- All Implemented Interfaces:
Criteria
public class AlwaysMatch extends BaseCriteria
Criteria that always return true- Author:
- teck
-
-
Constructor Summary
Constructors Constructor Description AlwaysMatch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Criteriaand(Criteria other)Produce a criteria that is the boolean "and" of this and the given other criteriabooleanexecute(Element e, java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors)Test this criteria against a cache elementjava.util.Set<Attribute<?>>getAttributes()Returns all search attributes referenced by this instanceCriteriaor(Criteria other)Produce a criteria that is the boolean "or" of this and the given other criteria-
Methods inherited from class net.sf.ehcache.search.expression.BaseCriteria
getExtractor, not
-
-
-
-
Method Detail
-
execute
public boolean execute(Element e, java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors)
Test this criteria against a cache element- Parameters:
e- cache elementattributeExtractors- map of attribute extractors to attribute value names- Returns:
- true if the criteria matches this element
-
and
public Criteria and(Criteria other)
Produce a criteria that is the boolean "and" of this and the given other criteria- Specified by:
andin interfaceCriteria- Overrides:
andin classBaseCriteria- Returns:
- and criteria
-
or
public Criteria or(Criteria other)
Produce a criteria that is the boolean "or" of this and the given other criteria- Specified by:
orin interfaceCriteria- Overrides:
orin classBaseCriteria- Returns:
- or criteria
-
getAttributes
public java.util.Set<Attribute<?>> getAttributes()
Description copied from class:BaseCriteriaReturns all search attributes referenced by this instance- Specified by:
getAttributesin classBaseCriteria
-
-