org.omnaest.utils.events.concrete
Class EventListenerRegistrationImpl<EVENT,RESULT>
java.lang.Object
org.omnaest.utils.events.concrete.EventListenerRegistrationImpl<EVENT,RESULT>
- Type Parameters:
EVENT - RESULT -
- All Implemented Interfaces:
- EventListenerRegistration<EVENT,RESULT>
public class EventListenerRegistrationImpl<EVENT,RESULT>
- extends Object
- implements EventListenerRegistration<EVENT,RESULT>
Registration for EventListener instances. Allows to add and remove EventListener instances. Intended for client use.
- See Also:
EventManagerImpl
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
listenerList
protected List<EventListener<EVENT,RESULT>> listenerList
EventListenerRegistrationImpl
protected EventListenerRegistrationImpl(List<? extends EventListener<EVENT,RESULT>> listenerList)
- Parameters:
listenerList -
addEventListener
public EventListenerRegistration<EVENT,RESULT> addEventListener(EventListener<EVENT,RESULT> listener)
- Adds a new
EventListener to the handler.
- Specified by:
addEventListener in interface EventListenerRegistration<EVENT,RESULT>
- Parameters:
listener -
- Returns:
- this
removeEventListener
public EventListenerRegistration<EVENT,RESULT> removeEventListener(EventListener<EVENT,RESULT> listener)
- Removes a given
EventListener instance from the handler.
- Specified by:
removeEventListener in interface EventListenerRegistration<EVENT,RESULT>
- Parameters:
listener -
- Returns:
- this
Copyright © 2013. All Rights Reserved.