- Type Parameters:
E- the element type
- All Known Subinterfaces:
- All Known Implementing Classes:
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Observer<E extends GenericEvent<?>>The listener of an event subscriber to be fed with events by a event publisher.
void onEvent(E aEvent)The listener implementing this interface is notified of an event via this method. The publisher pushes the event to the subscriber.
aEvent- aEvent The event to be pushed from the publisher to the subscriber.