java.lang.Object
org.refcodes.matcher.AbstractMatcher<M>
org.refcodes.matcher.NotMatcher<M>
- Type Parameters:
M
- The matchee type.
- All Implemented Interfaces:
Matchable<M>
,Matcher<M>
,org.refcodes.mixin.AliasAccessor
,org.refcodes.schema.Schemable
A logical NOT implementation of a
Matcher
encapsulating another
Matcher
. The NOT Matcher
's isMatching(Object)
method
inverts (NOT) the isMatching(Object)
result of the encapsulated
Matcher
.-
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
ConstructorDescriptionNotMatcher
(Matcher<M> aMatcher) Constructs a NOTMatcher
whoseisMatching(Object)
method inverts (NOT) theisMatching(Object)
result of the encapsulatedMatcher
. -
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
-
Field Details
-
ALIAS
- See Also:
-
-
Constructor Details
-
NotMatcher
Constructs a NOTMatcher
whoseisMatching(Object)
method inverts (NOT) theisMatching(Object)
result of the encapsulatedMatcher
.- Parameters:
aMatcher
- TheMatcher
to be wrapped with a NOT.
-
-
Method Details
-
isMatching
Tests whether the given event is matching the mathcer's criteria.- Parameters:
aMatchee
- The matchee used for testing matchability.- Returns:
- True in case the matchee matches the matcher's criteria, else false.
-