public class ChannelFilter<C> extends Object implements EventFilter<C>
| Constructor and Description |
|---|
ChannelFilter(boolean accept,
Channel... channels) |
ChannelFilter(boolean accept,
Collection<? extends Channel> channels) |
ChannelFilter(Channel... channels) |
ChannelFilter(Channel channel) |
ChannelFilter(Collection<? extends Channel> channels) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Event<C> event)
States whether the event should be passed to the event handler that was registered with it.
|
void |
addChannel(Channel channel) |
void |
removeChannel(Channel channel) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitand, not, orpublic ChannelFilter(Channel channel)
public ChannelFilter(Channel... channels)
public ChannelFilter(Collection<? extends Channel> channels)
public ChannelFilter(boolean accept,
Channel... channels)
public ChannelFilter(boolean accept,
Collection<? extends Channel> channels)
public void addChannel(Channel channel)
public void removeChannel(Channel channel)
public boolean accept(Event<C> event)
EventFilteraccept in interface EventFilter<C>event - Event to be filtered in or out.Copyright © 2017. All rights reserved.