Class EqualityMatcher<T>
java.lang.Object
net.bytebuddy.matcher.ElementMatcher.Junction.AbstractBase<T>
net.bytebuddy.matcher.EqualityMatcher<T>
- Type Parameters:
T- The type of the matched entity.
- All Implemented Interfaces:
ElementMatcher<T>, ElementMatcher.Junction<T>
An element matcher that checks an object's equality to another object.
-
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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEqualityMatcher(Object value) Creates an element matcher that tests for equality. -
Method Summary
Methods inherited from class ElementMatcher.Junction.AbstractBase
and, or
-
Field Details
-
value
The object that is checked to be equal to the matched value.
-
-
Constructor Details
-
EqualityMatcher
Creates an element matcher that tests for equality.- Parameters:
value- The object that is checked to be equal to the matched value.
-
-
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
-