|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.hiveevents.FiltersChain<T>
public class FiltersChain<T>
Chain of event filters. Allows to daisy chain several filters (makes it easier to build complex filters).
| Constructor Summary | |
|---|---|
FiltersChain()
|
|
| Method Summary | ||
|---|---|---|
void |
addFilter(Filter<T> filter)
Add a filter at the end of the chain. |
|
static
|
create(Filter<T>... filters)
Create a chain of filters. |
|
boolean |
passEvent(T event)
Checks if an event passes through ALL the filters in the chain. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FiltersChain()
| Method Detail |
|---|
public static <T> Filter<T> create(Filter<T>... filters)
public void addFilter(Filter<T> filter)
public boolean passEvent(T event)
passEvent in interface Filter<T>event - the event to be checked
true if the event must be notified to the consumer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||