Module org.refcodes.observer
Package org.refcodes.observer
Class UniversalIdEqualWithEventMatcher<E extends MetaDataEvent<?,?>>
java.lang.Object
org.refcodes.observer.AbstractEventMatcher<E>
org.refcodes.observer.UniversalIdEqualWithEventMatcher<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 UniversalIdEqualWithEventMatcher<E extends MetaDataEvent<?,?>>
extends AbstractEventMatcher<E>
implements EventMatcher<E>
Matches the given universal ID with the universal ID stored in an event's
meta data (UNIVERSAL ID 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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new Universal-ID equal with matcher impl. -
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.refcodes.mixin.AliasAccessor
getAlias
-
Field Details
-
ALIAS
- See Also:
-
-
Constructor Details
-
UniversalIdEqualWithEventMatcher
Instantiates a new Universal-ID equal with matcher impl.- Parameters:
aUid
- the Universal-TID
-
-
Method Details
-
isMatching
Tests whether the givenActionEvent
is matching theMatcher
's criteria.- Specified by:
isMatching
in interfaceEventMatcher<E extends MetaDataEvent<?,
?>> - Specified by:
isMatching
in interfaceorg.refcodes.matcher.Matchable<E extends MetaDataEvent<?,
?>> - 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 MetaDataEvent<?,
?>> - Specified by:
toSchema
in interfaceorg.refcodes.mixin.Schemable
- Overrides:
toSchema
in classAbstractEventMatcher<E extends MetaDataEvent<?,
?>>
-