Module org.refcodes.observer
Package org.refcodes.observer
Class GroupEqualWithEventMatcher<E extends GenericMetaDataEvent<?,?>>
java.lang.Object
org.refcodes.observer.GroupEqualWithEventMatcher<E>
- Type Parameters:
E- The matchee type.
- All Implemented Interfaces:
org.refcodes.matcher.Matchable<E>,org.refcodes.matcher.Matcher<E>,org.refcodes.mixin.Schemable<org.refcodes.matcher.MatcherSchema>,EventMatcher<E>
public class GroupEqualWithEventMatcher<E extends GenericMetaDataEvent<?,?>>
extends Object
implements EventMatcher<E>
Matches the given group with the group stored in an event's meta data (GROUP
EQUAL WITH).
-
Constructor Summary
ConstructorsConstructorDescriptionGroupEqualWithEventMatcher(String aGroup) Instantiates a new group equal with matcher impl. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisMatching(E aEvent) Tests whether the givenGenericActionEventis matching theMatcher's criteria.org.refcodes.matcher.MatcherSchematoSchema()
-
Constructor Details
-
GroupEqualWithEventMatcher
Instantiates a new group equal with matcher impl.- Parameters:
aGroup- the group
-
-
Method Details
-
isMatching
Tests whether the givenGenericActionEventis matching theMatcher's criteria.- Specified by:
isMatchingin interfaceEventMatcher<E extends GenericMetaDataEvent<?,?>> - Specified by:
isMatchingin interfaceorg.refcodes.matcher.Matchable<E extends GenericMetaDataEvent<?,?>> - Parameters:
aEvent- TheGenericActionEventused for testing its matchability.- Returns:
- True in case the
GenericActionEventmatches theMatcher's criteria, else false.
-
toSchema
public org.refcodes.matcher.MatcherSchema toSchema()- Specified by:
toSchemain interfaceorg.refcodes.mixin.Schemable<E extends GenericMetaDataEvent<?,?>>
-