public final class BooleanAttributeFilter extends AbstractEventFilter
attribute, attributeIndex, manager
Constructor and Description |
---|
BooleanAttributeFilter(LogView view,
Attribute attribute,
boolean keepTrue,
boolean keepFalse)
keeps events if the attribute value is true if keepTrue is set and if the
value is false if keepFalse is set.
|
Modifier and Type | Method and Description |
---|---|
boolean |
keepEvent(LogView view,
int traceIndex,
int eventIndex) |
equals, hashCode
public BooleanAttributeFilter(LogView view, Attribute attribute, boolean keepTrue, boolean keepFalse)
view
- attribute
- The attribute to be checked for each event. Note that this has
to be a boolean attribute, i.e. the type should be
Attribute.BOOL, otherwise results are unpredictableisEventAttribute
- min
- max
- inverted
- public boolean keepEvent(LogView view, int traceIndex, int eventIndex)