Module org.refcodes.observer
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 the
Matcher interface for the usage with
GenericActionEvent instances. An EventMatcher most commonly
uses the EventMetaData (as defined with the
GenericMetaDataEvent) in order to determine whether an
GenericActionEvent matches EventMetaData properties or not.-
Method Summary
Modifier and Type Method Description booleanisMatching(E aEvent)Tests whether the givenGenericActionEventis matching theMatcher's criteria.
-
Method Details
-
isMatching
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.
-