Package org.eclipse.net4j.util.event
Class EventUtil
java.lang.Object
org.eclipse.net4j.util.event.EventUtil
- Author:
- Eike Stepper
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends IEvent>
AutoCloseableaddListener
(Object notifier, Class<E> eventType, Consumer<E> eventConsumer) static boolean
addListener
(Object notifier, IListener listener) static boolean
addUniqueListener
(Object notifier, IListener listener) static IListener[]
getListeners
(Object notifier) static IListener[]
getListeners
(Object notifier, Predicate<IListener> predicate) static boolean
hasListener
(Object notifier, IListener listener) static boolean
removeListener
(Object notifier, IListener listener) static IListener[]
removeListeners
(Object notifier, Predicate<IListener> predicate)
-
Field Details
-
NO_LISTENERS
- Since:
- 3.0
-
-
Method Details
-
addUniqueListener
- Since:
- 3.2
-
addListener
-
addListener
public static <E extends IEvent> AutoCloseable addListener(Object notifier, Class<E> eventType, Consumer<E> eventConsumer) - Since:
- 3.15
-
removeListener
-
removeListeners
- Since:
- 3.20
-
getListeners
-
getListeners
- Since:
- 3.20
-
hasListener
- Since:
- 3.2
-