public abstract class LogicalOperationFilterImpl extends AbstractEventFilter implements LogicalOperationFilter
LogicalOperationFilter
implementation.
Contains a set of filters
and offers package intern methods to modify this setConstructor and Description |
---|
LogicalOperationFilterImpl(EventFilter... filters)
|
Modifier and Type | Method and Description |
---|---|
protected void |
addOperand(EventFilter filter)
|
protected void |
addOperands(java.util.Collection<EventFilter> filters)
|
protected void |
clearOperands()
Clears the operands |
protected EventFilter[] |
cloneContents()
|
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
getFilterCriterion()
Returns the unique property for an
AbstractEventFilter object |
java.util.Set<EventFilter> |
getOperands()
Returns a
read-only collection containing the filters |
int |
hashCode() |
boolean |
isNegated()
logical filters are never negated,
negation is done by combining with a NotFilter |
void |
setNegated(boolean b)
filter cannot be negated |
clone, expandNewAndOldValueCollections
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
matchesFor
public LogicalOperationFilterImpl(EventFilter... filters)
filters
- to be operandspublic java.util.Set<EventFilter> getOperands()
read-only collection
containing the filtersgetOperands
in interface LogicalOperationFilter
protected void clearOperands()
Clears
the operands
protected void addOperand(EventFilter filter)
filter
- to addprotected void addOperands(java.util.Collection<EventFilter> filters)
filters
- to addprotected EventFilter[] cloneContents()
public java.lang.Object getFilterCriterion()
AbstractEventFilter
AbstractEventFilter
objectgetFilterCriterion
in interface EventFilter
getFilterCriterion
in class AbstractEventFilter
set
of getOperands()
public boolean equals(java.lang.Object obj)
equals
in class AbstractEventFilter
public void setNegated(boolean b)
filter
cannot be negatedsetNegated
in class AbstractEventFilter
b
- true for negating the filter, false for notjava.lang.IllegalArgumentException
AbstractEventFilter.setNegated(boolean)
public boolean isNegated()
logical filters
are never negated,
negation is done by combining with a NotFilter
isNegated
in interface EventFilter
isNegated
in class AbstractEventFilter
false
EventFilter.isNegated()
public int hashCode()
hashCode
in class AbstractEventFilter