E
- The event type.public class ObserverDescriptorImpl<E extends Event,O extends Observer<E>,EM extends EventMatcher<E>> extends Object implements ObserverDescriptor<E,O,EM>
Constructor and Description |
---|
ObserverDescriptorImpl(O aEventListener,
EM aEventMatcher)
Constructs the event listener descriptor with the given event listener
and the given event matcher.
|
Modifier and Type | Method and Description |
---|---|
EM |
getEventMatcher()
Returns the
EventMatcher associated with the given
Observer . |
O |
getObserver()
Returns the
Observer associated with the given
EventMatcher |
void |
onEvent(E aEvent)
The listener implementing this interface is notified of an event via this
method.
|
public ObserverDescriptorImpl(O aEventListener, EM aEventMatcher)
aEventListener
- The listener to be stored in the event listener
descriptor.aEventMatcher
- The matcher to be stored in the event listener
descriptor.public void onEvent(E aEvent)
public O getObserver()
Observer
associated with the given
EventMatcher
getObserver
in interface ObserverDescriptor<E extends Event,O extends Observer<E>,EM extends EventMatcher<E>>
Observer
as it is being managed by the
ObserverDescriptor
.public EM getEventMatcher()
EventMatcher
associated with the given
Observer
.getEventMatcher
in interface ObserverDescriptor<E extends Event,O extends Observer<E>,EM extends EventMatcher<E>>
EventMatcher
as it is being managed by the
ObserverDescriptor
.Copyright © 2015. All rights reserved.