L - the listener type@FunctionalInterface
public interface SubscriberFilter<L>
| Modifier and Type | Field and Description |
|---|---|
static SubscriberFilter<?> |
TRUE
A subscriber filter which always returns
true. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
test(L listener,
@NonNull java.lang.reflect.Method method)
Tests if a method should be registered as an event subscriber.
|
static final SubscriberFilter<?> TRUE
true.boolean test(L listener, @NonNull java.lang.reflect.Method method)
listener - the listenermethod - the methodtrue if the method should be registered an event subscriber, false otherwise