Class GroupEqualWithEventMatcher<E extends MetaDataEvent<?,?>>
java.lang.Object
org.refcodes.observer.AbstractEventMatcher<E>
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.AliasAccessor, EventMatcher<E>, org.refcodes.schema.Schemable
public class GroupEqualWithEventMatcher<E extends MetaDataEvent<?,?>>
extends AbstractEventMatcher<E>
Matches the given group with the group stored in an event's meta data (GROUP
EQUAL WITH).
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.AliasAccessor
org.refcodes.mixin.AliasAccessor.AliasBuilder<B>, org.refcodes.mixin.AliasAccessor.AliasMutator, org.refcodes.mixin.AliasAccessor.AliasProperty -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGroupEqualWithEventMatcher(String aGroup) Instantiates a new group equal with matcher impl. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisMatching(E aEvent) Tests whether the givenActionEventis matching theMatcher's criteria.org.refcodes.matcher.MatcherSchematoSchema()Methods inherited from class AbstractEventMatcher
getAlias
-
Field Details
-
ALIAS
- See Also:
-
-
Constructor Details
-
GroupEqualWithEventMatcher
Instantiates a new group equal with matcher impl.- Parameters:
aGroup- the group
-
-
Method Details
-
isMatching
Tests whether the givenActionEventis matching theMatcher's criteria.- Parameters:
aEvent- TheActionEventused for testing its matchability.- Returns:
- True in case the
ActionEventmatches theMatcher's criteria, else false.
-
toSchema
public org.refcodes.matcher.MatcherSchema toSchema()- Specified by:
toSchemain interfaceorg.refcodes.matcher.Matcher<E extends MetaDataEvent<?,?>> - Specified by:
toSchemain interfaceorg.refcodes.schema.Schemable- Overrides:
toSchemain classAbstractEventMatcher<E extends MetaDataEvent<?,?>>
-