Package net.sf.ehcache.search.expression
Class And
- java.lang.Object
-
- net.sf.ehcache.search.expression.BaseCriteria
-
- net.sf.ehcache.search.expression.And
-
- All Implemented Interfaces:
Criteria
public class And extends BaseCriteria
A search criteria composed of the logical "and" of two or more other criteria- Author:
- teck
-
-
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 instanceCriteria[]getCriterion()Return criterion-
Methods inherited from class net.sf.ehcache.search.expression.BaseCriteria
getExtractor, not, or
-
-
-
-
Method Detail
-
and
public Criteria and(Criteria other)
Description copied from class:BaseCriteriaProduce a criteria that is the boolean "and" of this and the given other criteria- Specified by:
andin interfaceCriteria- Overrides:
andin classBaseCriteria- Returns:
- and criteria
-
getCriterion
public Criteria[] getCriterion()
Return criterion- Returns:
- criterion
-
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
-
getAttributes
public java.util.Set<Attribute<?>> getAttributes()
Returns all search attributes referenced by this instance- Specified by:
getAttributesin classBaseCriteria
-
-