Module org.refcodes.observer
Package org.refcodes.observer
Interface MetaDataEventMatcher<E extends GenericMetaDataEvent<?,?>>
-
- Type Parameters:
E
- The matchee type
- All Superinterfaces:
EventMatcher<E>
,org.refcodes.matcher.Matcher<E>
public interface MetaDataEventMatcher<E extends GenericMetaDataEvent<?,?>> extends EventMatcher<E>
This interface typifies theMatcher
interface for the usage withGenericMetaDataEvent
instances. AnEventMatcher
most commonly uses theEventMetaData
(as defined with theGenericMetaDataEvent
) in order to determine whether anGenericActionEvent
matchesEventMetaData
properties or not.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isMatching(E aEvent)
Tests whether the given event is matching the mathcer's criteria.
-
-
-
Method Detail
-
isMatching
boolean isMatching(E aEvent)
Tests whether the given event is matching the mathcer's criteria.- Specified by:
isMatching
in interfaceEventMatcher<E extends GenericMetaDataEvent<?,?>>
- Specified by:
isMatching
in interfaceorg.refcodes.matcher.Matcher<E extends GenericMetaDataEvent<?,?>>
- Parameters:
aEvent
- The event used for testing its matchability.- Returns:
- True in case the event matches the matcher's criteria, else false.
-
-