Class NegatingMatcher<T>
java.lang.Object
net.bytebuddy.matcher.ElementMatcher.Junction.AbstractBase<T>
net.bytebuddy.matcher.NegatingMatcher<T>
- Type Parameters:
T- The type of the matched entity.
- All Implemented Interfaces:
ElementMatcher<T>, ElementMatcher.Junction<T>
An element matcher that reverses the matching result of another matcher.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ElementMatcher
ElementMatcher.Junction<S>Nested classes/interfaces inherited from interface ElementMatcher.Junction
ElementMatcher.Junction.AbstractBase<V>, ElementMatcher.Junction.Conjunction<W>, ElementMatcher.Junction.Disjunction<W>, ElementMatcher.Junction.ForNonNullValues<W> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ElementMatcher<? super T> The element matcher to be negated. -
Constructor Summary
ConstructorsConstructorDescriptionNegatingMatcher(ElementMatcher<? super T> matcher) Creates a new negating element matcher. -
Method Summary
Methods inherited from class ElementMatcher.Junction.AbstractBase
and, or
-
Field Details
-
matcher
The element matcher to be negated.
-
-
Constructor Details
-
NegatingMatcher
Creates a new negating element matcher.- Parameters:
matcher- The element matcher to be negated.
-
-
Method Details
-
matches
Matches a target against this element matcher.- Parameters:
target- The instance to be matched ornull.- Returns:
trueif the given element is matched by this matcher orfalseotherwise.
-
toString
-