Package org.refcodes.observer
Interface EventMatcher<E extends GenericEvent<?>>
-
- Type Parameters:
E
- The matchee type
- All Superinterfaces:
org.refcodes.matcher.Matcher<E>
- All Known Subinterfaces:
MetaDataEventMatcher<E>
public interface EventMatcher<E extends GenericEvent<?>> extends org.refcodes.matcher.Matcher<E>
This interface typifies theMatcher
interface for the usage withGenericActionEvent
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 givenGenericActionEvent
is matching theMatcher
's criteria.
-
-
-
Method Detail
-
isMatching
boolean isMatching(E aEvent)
Tests whether the givenGenericActionEvent
is matching theMatcher
's criteria.- Specified by:
isMatching
in interfaceorg.refcodes.matcher.Matcher<E extends GenericEvent<?>>
- Parameters:
aEvent
- TheGenericActionEvent
used for testing its matchability.- Returns:
- True in case the
GenericActionEvent
matches theMatcher
's criteria, else false.
-
-