Class ChannelEqualWithEventMatcher<E extends MetaDataEvent<?,?>>
java.lang.Object
org.refcodes.observer.AbstractEventMatcher<E>
org.refcodes.observer.ChannelEqualWithEventMatcher<E>
- Type Parameters:
E- The matchee type.
- All Implemented Interfaces:
Matchable<E>, Matcher<E>, AliasAccessor, EventMatcher<E>, Diagnosable, Schemable<DiagnosticOptions>
public class ChannelEqualWithEventMatcher<E extends MetaDataEvent<?,?>>
extends AbstractEventMatcher<E>
Matches the given channel with the channel stored in an event's metadata
(CHANNEL EQUAL WITH).
-
Nested Class Summary
Nested classes/interfaces inherited from interface AliasAccessor
AliasAccessor.AliasBuilder<B>, AliasAccessor.AliasMutator, AliasAccessor.AliasProperty -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionChannelEqualWithEventMatcher(String aChannel) Instantiates a new channel equal with matcher impl. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisMatching(E aEvent) Tests whether the givenActionEventis matching theMatcher's criteria.toSchema()Methods inherited from class AbstractEventMatcher
getAlias
-
Field Details
-
ALIAS
- See Also:
-
-
Constructor Details
-
ChannelEqualWithEventMatcher
Instantiates a new channel equal with matcher impl.- Parameters:
aChannel- the channel
-
-
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
- Specified by:
toSchemain interfaceMatcher<E extends MetaDataEvent<?,?>> - Specified by:
toSchemain interfaceSchemable<E extends MetaDataEvent<?,?>> - Overrides:
toSchemain classAbstractEventMatcher<E extends MetaDataEvent<?,?>>
-