public class OriginFilter extends AbstractFilter
type, whitelist
Constructor and Description |
---|
OriginFilter(ParticipantId origin) |
OriginFilter(ParticipantId origin,
boolean invert) |
Modifier and Type | Method and Description |
---|---|
void |
dispachToObserver(FilterObserver o,
FilterAction a)
Helper method for double dispatch of Filter registrations
|
boolean |
equals(java.lang.Object that) |
ParticipantId |
getOrigin() |
boolean |
isInverted() |
void |
skip(EventId id)
skip this filter for any event with the specified ID.
|
Event |
transform(Event e)
This method does the actual filtering step.
|
mustSkip, skipped
public OriginFilter(ParticipantId origin, boolean invert)
public OriginFilter(ParticipantId origin)
public ParticipantId getOrigin()
public boolean isInverted()
public Event transform(Event e)
AbstractFilter
transform
in interface Filter
transform
in class AbstractFilter
e
- the event to be transformedpublic void dispachToObserver(FilterObserver o, FilterAction a)
AbstractFilter
dispachToObserver
in interface Filter
dispachToObserver
in class AbstractFilter
public void skip(EventId id)
AbstractFilter
skip
in class AbstractFilter