M
- The matchee type.public class NotMatcherImpl<M> extends Object implements Matcher<M>
Matcher
encapsulating another
Matcher
. The NOT Matcher
's isMatching(Object)
method
inverts (NOT) the isMatching(Object)
result of the encapsulated
Matcher
.Constructor and Description |
---|
NotMatcherImpl(Matcher<M> aMatcher)
Constructs a NOT
Matcher whose isMatching(Object) method
inverts (NOT) the isMatching(Object) result of the encapsulated
Matcher . |
Modifier and Type | Method and Description |
---|---|
boolean |
isMatching(M aMatchee)
Tests whether the given event is matching the mathcer's criteria.
|
public NotMatcherImpl(Matcher<M> aMatcher)
Matcher
whose isMatching(Object)
method
inverts (NOT) the isMatching(Object)
result of the encapsulated
Matcher
.aMatcher
- The Matcher
to be wrapped with a NOT.public boolean isMatching(M aMatchee)
isMatching
in interface Matcher<M>
aMatchee
- The matchee used for testing matchability.Copyright © 2018. All rights reserved.