EventBlackList

public final class EventBlackList implements EventFilter

An EventFilter which allows any events except for the events of given types.

See also

Functions

Link copied to clipboard
public static EventBlackList discardEvents(Array<Class<? extends EventMessage>> eventClasses)
Creates a new instance of EventBlackList discarding events of the given types.
Link copied to clipboard
public Optional<? extends EventMessage> filter(EventMessage event)
Applies this filter to the given event.

Inherited functions

Link copied to clipboard
public static EventFilter allowAll()
Obtains an EventFilter which always returns the input event without any change.
Link copied to clipboard
public ImmutableCollection<Event> filter(Collection<Event> events)
Applies this filter to the given Events in bulk.