Top Description Fields Constructors Methods
org.easymock.bytebuddy.matcher

public Class NegatingMatcher<T>

extends ElementMatcher.Junction.AbstractBase<T>
Class Inheritance
Annotations
@Enhance
Type Parameters
<T>
The type of the matched entity.
Imports
org.easymock.bytebuddy.build.HashCodeAndEqualsPlugin, org.easymock.bytebuddy.utility.nullability.MaybeNull

An element matcher that reverses the matching result of another matcher.

Field Summary

Modifier and TypeField and Description
private final ElementMatcher<? super T>
matcher

The element matcher to be negated.

Constructor Summary

AccessConstructor and Description
public
NegatingMatcher(ElementMatcher<? super T>
The element matcher to be negated.
matcher
)

Creates a new negating element matcher.

Method Summary

Modifier and TypeMethod and Description
public boolean
matches(T
The instance to be matched or null.
target
)

Implements org.easymock.bytebuddy.matcher.ElementMatcher.matches.

Matches a target against this element matcher.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.easymock.bytebuddy.matcher.ElementMatcher.Junction.AbstractBase:
andor

Field Detail

matcherback to summary
private final ElementMatcher<? super T> matcher

The element matcher to be negated.

Constructor Detail

NegatingMatcherback to summary
public NegatingMatcher(ElementMatcher<? super T> matcher)

Creates a new negating element matcher.

Parameters
matcher:ElementMatcher<? super T>

The element matcher to be negated.

Method Detail

matchesback to summary
public boolean matches(T target)

Implements org.easymock.bytebuddy.matcher.ElementMatcher.matches.

Doc from org.easymock.bytebuddy.matcher.ElementMatcher.matches.

Matches a target against this element matcher.

Parameters
target:T

The instance to be matched or null.

Returns:boolean

true if the given element is matched by this matcher or false otherwise.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override