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 theMatcherinterface for the usage withGenericActionEventinstances. AnEventMatchermost commonly uses theEventMetaData(as defined with theGenericMetaDataEvent) in order to determine whether anGenericActionEventmatchesEventMetaDataproperties or not.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisMatching(E aEvent)Tests whether the givenGenericActionEventis matching theMatcher's criteria.
-
-
-
Method Detail
-
isMatching
boolean isMatching(E aEvent)
Tests whether the givenGenericActionEventis matching theMatcher's criteria.- Specified by:
isMatchingin interfaceorg.refcodes.matcher.Matcher<E extends GenericEvent<?>>- Parameters:
aEvent- TheGenericActionEventused for testing its matchability.- Returns:
- True in case the
GenericActionEventmatches theMatcher's criteria, else false.
-
-