Module org.refcodes.observer
Package org.refcodes.observer
Class CatchAllEventMatcher<E extends GenericMetaDataEvent<?,?>>
java.lang.Object
org.refcodes.observer.AbstractEventMatcher<E>
org.refcodes.observer.CatchAllEventMatcher<E>
- Type Parameters:
E
- The generic type.
- All Implemented Interfaces:
org.refcodes.matcher.Matchable<E>
,org.refcodes.matcher.Matcher<E>
,org.refcodes.mixin.AliasAccessor
,org.refcodes.mixin.Schemable<org.refcodes.matcher.MatcherSchema>
,EventMatcher<E>
public class CatchAllEventMatcher<E extends GenericMetaDataEvent<?,?>>
extends AbstractEventMatcher<E>
implements EventMatcher<E>
Catches all events, no matching is done (CATCH ALL).
-
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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isMatching
(E aEvent) Tests whether the givenGenericActionEvent
is matching theMatcher
's criteria.Methods inherited from class org.refcodes.observer.AbstractEventMatcher
getAlias, toSchema
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
Methods inherited from interface org.refcodes.mixin.Schemable
toSchema
-
Field Details
-
ALIAS
- See Also:
-
-
Constructor Details
-
CatchAllEventMatcher
public CatchAllEventMatcher()Constructs the "catch all"EventMatcher
instance.
-
-
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.
-