Module org.refcodes.observer
Package org.refcodes.observer
Class ChannelEqualWithEventMatcher<E extends GenericMetaDataEvent<?,?>>
java.lang.Object
org.refcodes.observer.ChannelEqualWithEventMatcher<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 ChannelEqualWithEventMatcher<E extends GenericMetaDataEvent<?,?>>
extends Object
implements EventMatcher<E>
Matches the given channel with the channel stored in an event's meta data
(CHANNEL EQUAL WITH).
-
Constructor Summary
ConstructorDescriptionChannelEqualWithEventMatcher
(String aChannel) Instantiates a new channel equal with matcher impl. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isMatching
(E aEvent) Tests whether the givenGenericActionEvent
is matching theMatcher
's criteria.org.refcodes.matcher.MatcherSchema
toSchema()
-
Constructor Details
-
ChannelEqualWithEventMatcher
Instantiates a new channel equal with matcher impl.- Parameters:
aChannel
- the channel
-
-
Method Details
-
isMatching
Tests whether the givenGenericActionEvent
is matching theMatcher
's criteria.- Specified by:
isMatching
in interfaceEventMatcher<E extends GenericMetaDataEvent<?,
?>> - Specified by:
isMatching
in interfaceorg.refcodes.matcher.Matchable<E extends GenericMetaDataEvent<?,
?>> - Parameters:
aEvent
- TheGenericActionEvent
used for testing its matchability.- Returns:
- True in case the
GenericActionEvent
matches theMatcher
's criteria, else false.
-
toSchema
public org.refcodes.matcher.MatcherSchema toSchema()- Specified by:
toSchema
in interfaceorg.refcodes.mixin.Schemable<E extends GenericMetaDataEvent<?,
?>>
-