public interface Event
Modifier and Type | Method and Description |
---|---|
boolean |
matches(Object otherEvent)
Compares two events to see if they match, meaning that a listener that registered to receive
notifications like
referenceEvent will be notified of any occuring event for which
referenceEvent.matches(occuringEvent) will return true . |
boolean matches(Object otherEvent)
referenceEvent
will be notified of any occuring event for which
referenceEvent.matches(occuringEvent)
will return true
. The matching algorithm depends
on the event implementation. For example for Document events two events match if they implement the same event
class and if their EventFilter
match. Note that the implementation is
left open in order to cater for all the possible ways this Observation component can be used.otherEvent
- the occuring event matched against the current objecttrue
if the passed event matches this event, false
otherwise.Copyright © 2004–2021 XWiki. All rights reserved.