public final class FilterParamIndexBooleanExpr extends FilterParamIndexBase
Constructor and Description |
---|
FilterParamIndexBooleanExpr(ReadWriteLock readWriteLock) |
Modifier and Type | Method and Description |
---|---|
EventEvaluator |
get(Object filterConstant)
Get the event evaluation instance associated with the constant.
|
ReadWriteLock |
getReadWriteLock()
Supplies the lock for protected access.
|
boolean |
isEmpty()
Return empty indicator.
|
void |
matchEvent(EventBean theEvent,
Collection<FilterHandle> matches)
Perform the matching of an event based on the event property values,
adding any callbacks for matches found to the matches list.
|
void |
put(Object filterConstant,
EventEvaluator evaluator)
Store the event evaluation instance for the given constant.
|
void |
remove(Object filterConstant)
Remove the event evaluation instance for the given constant.
|
int |
sizeExpensive()
Return the number of distinct filter parameter constants stored, which can be an expensive call.
|
getFilterOperator, toString
public FilterParamIndexBooleanExpr(ReadWriteLock readWriteLock)
public final EventEvaluator get(Object filterConstant)
FilterParamIndexBase
get
in class FilterParamIndexBase
filterConstant
- is the constant supplied in the event filter parameterpublic final void put(Object filterConstant, EventEvaluator evaluator)
FilterParamIndexBase
put
in class FilterParamIndexBase
filterConstant
- is the constant supplied in the filter parameterevaluator
- to be stored for the constantpublic final void remove(Object filterConstant)
FilterParamIndexBase
remove
in class FilterParamIndexBase
filterConstant
- is the value supplied in the filter paremeterpublic final int sizeExpensive()
FilterParamIndexBase
sizeExpensive
in class FilterParamIndexBase
public boolean isEmpty()
FilterParamIndexBase
isEmpty
in class FilterParamIndexBase
public final ReadWriteLock getReadWriteLock()
FilterParamIndexBase
getReadWriteLock
in class FilterParamIndexBase
public final void matchEvent(EventBean theEvent, Collection<FilterHandle> matches)
EventEvaluator
theEvent
- is the event object wrapper to obtain event property values frommatches
- accumulates the matching filter callbacks