java.lang.Object
org.refcodes.matcher.AbstractMatcher<M>
org.refcodes.matcher.AnyMatcher<M>
- Type Parameters:
M
- The matchee type.
- All Implemented Interfaces:
Matchable<M>
,Matcher<M>
,org.refcodes.mixin.AliasAccessor
,org.refcodes.mixin.Schemable<MatcherSchema>
An ANY implementation of a
Matcher
which always returns
true
.-
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
(M aMatchee) Tests whether the given event is matching the mathcer's criteria.Methods inherited from class org.refcodes.matcher.AbstractMatcher
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
-
AnyMatcher
public AnyMatcher()Constructs an ANY implementation of aMatcher
which always returnstrue
.
-
-
Method Details
-
isMatching
Tests whether the given event is matching the mathcer's criteria.- Specified by:
isMatching
in interfaceMatchable<M>
- Parameters:
aMatchee
- The matchee used for testing matchability.- Returns:
- True in case the matchee matches the matcher's criteria, else false.
-