Maven module :un.api : api-common :
Class : un.api.event.Event
Extends/Implements : -
Subclasses : -

An event is a container for informations.
Whenever an object needs to send notifications to others it should implement
the EventSource class, and then send Event objects.
Events can be used for example as :


Variables : -
Functions : getSource, isConsumable, isConsumed, consume, getTrigger




return  EventSource who raised the event, never null.
EventSource getSource ()


Some events may be consumable.
Once consumed they should be ignored or discarded.
return  true if event consumable
boolean isConsumable ()


return  true is event has been consumed.
boolean isConsumed ()


Consume the event.
void consume ()


An event might have been trigger by another.
This method returns the original trigger event.
return  Event, can be null.
Event getTrigger ()