Module org.refcodes.observer
Package org.refcodes.observer
Class ActionEqualWithEventMatcher<E extends MetaDataActionEvent<?,?,?>>
java.lang.Object
org.refcodes.observer.AbstractEventMatcher<E>
org.refcodes.observer.ActionEqualWithEventMatcher<E>
- Type Parameters:
E
- The matchee type.
- All Implemented Interfaces:
org.refcodes.matcher.Matchable<E>
,org.refcodes.matcher.Matcher<E>
,org.refcodes.mixin.AliasAccessor
,org.refcodes.mixin.Schemable
,EventMatcher<E>
public class ActionEqualWithEventMatcher<E extends MetaDataActionEvent<?,?,?>>
extends AbstractEventMatcher<E>
Matches the given action with the action stored in an event's meta data
(ACTION EQUAL WITH).
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.AliasAccessor
org.refcodes.mixin.AliasAccessor.AliasBuilder<B extends org.refcodes.mixin.AliasAccessor.AliasBuilder<B>>, org.refcodes.mixin.AliasAccessor.AliasMutator, org.refcodes.mixin.AliasAccessor.AliasProperty
-
Field Summary
-
Constructor Summary
ConstructorDescriptionActionEqualWithEventMatcher
(A aAction) Instantiates a new action equal with matcher. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isMatching
(E aEvent) Tests whether the givenActionEvent
is matching theMatcher
's criteria.org.refcodes.matcher.MatcherSchema
toSchema()
Methods inherited from class org.refcodes.observer.AbstractEventMatcher
getAlias
-
Field Details
-
ALIAS
- See Also:
-
-
Constructor Details
-
ActionEqualWithEventMatcher
public ActionEqualWithEventMatcher(A aAction) Instantiates a new action equal with matcher.- Type Parameters:
A
- the generic type- Parameters:
aAction
- the action
-
-
Method Details
-
isMatching
Tests whether the givenActionEvent
is matching theMatcher
's criteria.- Parameters:
aEvent
- TheActionEvent
used for testing its matchability.- Returns:
- True in case the
ActionEvent
matches theMatcher
's criteria, else false.
-
toSchema
public org.refcodes.matcher.MatcherSchema toSchema()- Specified by:
toSchema
in interfaceorg.refcodes.matcher.Matcher<E extends MetaDataActionEvent<?,
?, ?>> - Specified by:
toSchema
in interfaceorg.refcodes.mixin.Schemable
- Overrides:
toSchema
in classAbstractEventMatcher<E extends MetaDataActionEvent<?,
?, ?>>
-