Module org.refcodes.observer
Package org.refcodes.observer
Interface EventMatcher<E extends GenericEvent<?>>
- Type Parameters:
E- The matchee type.
- All Superinterfaces:
org.refcodes.matcher.Matchable<E>,org.refcodes.matcher.Matcher<E>,org.refcodes.mixin.Schemable<org.refcodes.matcher.MatcherSchema>
- All Known Subinterfaces:
MetaDataEventMatcher<E>
- All Known Implementing Classes:
ActionEqualWithEventMatcher,AliasEqualWithEventMatcher,CatchAllEventMatcher,CatchNoneEventMatcher,ChannelEqualWithEventMatcher,GroupEqualWithEventMatcher,PublisherIsAssignableFromMatcher,UniversalIdEqualWithEventMatcher
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 TypeMethodDescriptionbooleanisMatching(E aEvent) Tests whether the givenGenericActionEventis matching theMatcher's criteria.Methods inherited from interface org.refcodes.mixin.Schemable
toSchema
-
Method Details
-
isMatching
Tests whether the givenGenericActionEventis matching theMatcher's criteria.- Specified by:
isMatchingin interfaceorg.refcodes.matcher.Matchable<E extends GenericEvent<?>>- Parameters:
aEvent- TheGenericActionEventused for testing its matchability.- Returns:
- True in case the
GenericActionEventmatches theMatcher's criteria, else false.
-