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

public Class EqualityMatcher<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 checks an object's equality to another object.

Field Summary

Modifier and TypeField and Description
private final Object
value

The object that is checked to be equal to the matched value.

Constructor Summary

AccessConstructor and Description
public
EqualityMatcher(Object
The object that is checked to be equal to the matched value.
value
)

Creates an element matcher that tests for equality.

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

valueback to summary
private final Object value

The object that is checked to be equal to the matched value.

Constructor Detail

EqualityMatcherback to summary
public EqualityMatcher(Object value)

Creates an element matcher that tests for equality.

Parameters
value:Object

The object that is checked to be equal to the matched value.

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