Top Description Constructors Methods
net.sf.ehcache.search.expression

public Class AlwaysMatch

extends BaseCriteria
Class Inheritance
Imports
java.util.Collections, .Map, .Set, net.sf.ehcache.Element, net.sf.ehcache.search.Attribute, net.sf.ehcache.search.attribute.AttributeExtractor

Criteria that always return true
Author
teck

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Criteria
and(Criteria other)

Overrides net.sf.ehcache.search.expression.BaseCriteria.and.

Implements net.sf.ehcache.search.expression.Criteria.and.

Produce a criteria that is the boolean "and" of this and the given other criteria
public boolean
execute(Element
cache element
e
,
Map<String, AttributeExtractor>
map of attribute extractors to attribute value names
attributeExtractors
)

Implements net.sf.ehcache.search.expression.Criteria.execute.

Test this criteria against a cache element
public Set<Attribute<?>>
getAttributes()

Implements abstract net.sf.ehcache.search.expression.BaseCriteria.getAttributes.

Returns all search attributes referenced by this instance
public Criteria
or(Criteria other)

Overrides net.sf.ehcache.search.expression.BaseCriteria.or.

Implements net.sf.ehcache.search.expression.Criteria.or.

Produce a criteria that is the boolean "or" of this and the given other criteria
Inherited from net.sf.ehcache.search.expression.BaseCriteria:
getExtractornot

Constructor Detail

AlwaysMatchback to summary
public AlwaysMatch()

Method Detail

andback to summary
public Criteria and(Criteria other)

Overrides net.sf.ehcache.search.expression.BaseCriteria.and.

Implements net.sf.ehcache.search.expression.Criteria.and.

Doc from net.sf.ehcache.search.expression.BaseCriteria.and.

Produce a criteria that is the boolean "and" of this and the given other criteria

Returns:Criteria

Doc from net.sf.ehcache.search.expression.Criteria.and.

and criteria

Annotations
@Override
executeback to summary
public boolean execute(Element e, Map<String, AttributeExtractor> attributeExtractors)

Implements net.sf.ehcache.search.expression.Criteria.execute.

Doc from net.sf.ehcache.search.expression.Criteria.execute.

Test this criteria against a cache element

Parameters
e:Element

cache element

attributeExtractors:Map<String, AttributeExtractor>

map of attribute extractors to attribute value names

Returns:boolean

true if the criteria matches this element

getAttributesback to summary
public Set<Attribute<?>> getAttributes()

Implements abstract net.sf.ehcache.search.expression.BaseCriteria.getAttributes.

Doc from net.sf.ehcache.search.expression.BaseCriteria.getAttributes.

Returns all search attributes referenced by this instance

Annotations
@Override
orback to summary
public Criteria or(Criteria other)

Overrides net.sf.ehcache.search.expression.BaseCriteria.or.

Implements net.sf.ehcache.search.expression.Criteria.or.

Doc from net.sf.ehcache.search.expression.BaseCriteria.or.

Produce a criteria that is the boolean "or" of this and the given other criteria

Returns:Criteria

Doc from net.sf.ehcache.search.expression.Criteria.or.

or criteria

Annotations
@Override