Package org.eclipse.net4j.util.event
Class EventUtil
- java.lang.Object
- 
- org.eclipse.net4j.util.event.EventUtil
 
- 
 public final class EventUtil extends java.lang.Object- Author:
- Eike Stepper
 
- 
- 
Field SummaryFields Modifier and Type Field Description static IListener[]NO_LISTENERS
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static <E extends IEvent>
 java.lang.AutoCloseableaddListener(java.lang.Object notifier, java.lang.Class<E> eventType, java.util.function.Consumer<E> eventConsumer)static booleanaddListener(java.lang.Object notifier, IListener listener)static booleanaddUniqueListener(java.lang.Object notifier, IListener listener)static IListener[]getListeners(java.lang.Object notifier)static booleanhasListener(java.lang.Object notifier, IListener listener)static booleanremoveListener(java.lang.Object notifier, IListener listener)
 
- 
- 
- 
Field Detail- 
NO_LISTENERSpublic static final IListener[] NO_LISTENERS - Since:
- 3.0
 
 
- 
 - 
Method Detail- 
addUniqueListenerpublic static boolean addUniqueListener(java.lang.Object notifier, IListener listener)- Since:
- 3.2
 
 - 
addListenerpublic static boolean addListener(java.lang.Object notifier, IListener listener)
 - 
addListenerpublic static <E extends IEvent> java.lang.AutoCloseable addListener(java.lang.Object notifier, java.lang.Class<E> eventType, java.util.function.Consumer<E> eventConsumer) - Since:
- 3.15
 
 - 
removeListenerpublic static boolean removeListener(java.lang.Object notifier, IListener listener)
 - 
getListenerspublic static IListener[] getListeners(java.lang.Object notifier) 
 - 
hasListenerpublic static boolean hasListener(java.lang.Object notifier, IListener listener)- Since:
- 3.2
 
 
- 
 
-