Filter
@Deprecated public abstract class AbstractFilter extends Object implements Filter
Modifier and Type | Field and Description |
---|---|
protected String |
type
Deprecated.
Stores the type info for this filter.
|
protected Set<EventId> |
whitelist
Deprecated.
Stores whitelisted event ids registered by
skip(EventId) . |
Modifier | Constructor and Description |
---|---|
|
AbstractFilter(Class<? extends AbstractFilter> type)
Deprecated.
|
protected |
AbstractFilter(String type)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
dispachToObserver(FilterObserver observer,
FilterAction action)
Deprecated.
Not used anymore.
|
boolean |
match(Event event)
Deprecated.
Tells whether the given event matches the filter and hence shall be
dispatched or not.
|
boolean |
mustSkip(EventId eventId)
Deprecated.
Returns whether events with the specified ID should be skipped or not.
|
void |
skip(EventId eventId)
Deprecated.
Skip this filter for any event with the specified ID.
|
void |
skipped(EventId eventId)
Deprecated.
Remove ID from the list after the corresponding event has been skipped.
|
abstract Event |
transform(Event event)
Deprecated.
|
protected Set<EventId> whitelist
skip(EventId)
.protected String type
protected AbstractFilter(String type)
type
- type of this filterpublic AbstractFilter(Class<? extends AbstractFilter> type)
public boolean match(Event event)
Filter
public void skip(EventId eventId)
eventId
- the id to skippublic boolean mustSkip(EventId eventId)
eventId
- id to skiptrue
, if the event with the specified ID should be
skippedpublic void skipped(EventId eventId)
eventId
- id to removepublic abstract void dispachToObserver(FilterObserver observer, FilterAction action)
observer
- unusedaction
- unusedCopyright © 2018 CoR-Lab. All rights reserved.