Package net.bytebuddy.build
Class HashCodeAndEqualsPlugin.ValueMatcher
java.lang.Object
net.bytebuddy.build.HashCodeAndEqualsPlugin.ValueMatcher
- All Implemented Interfaces:
ElementMatcher<FieldDescription>
- Enclosing class:
- HashCodeAndEqualsPlugin
@Enhance
protected static class HashCodeAndEqualsPlugin.ValueMatcher
extends Object
implements ElementMatcher<FieldDescription>
An element matcher for a
HashCodeAndEqualsPlugin.ValueHandling
annotation.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.matcher.ElementMatcher
ElementMatcher.Junction<S>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HashCodeAndEqualsPlugin.ValueHandling.Sort
The matched value. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Creates a new value matcher. -
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(FieldDescription target) Matches a target against this element matcher.
-
Field Details
-
sort
The matched value.
-
-
Constructor Details
-
ValueMatcher
Creates a new value matcher.- Parameters:
sort
- The matched value.
-
-
Method Details
-
matches
Matches a target against this element matcher.- Specified by:
matches
in interfaceElementMatcher<FieldDescription>
- Parameters:
target
- The instance to be matched ornull
.- Returns:
true
if the given element is matched by this matcher orfalse
otherwise.
-