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.SortThe matched value. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new value matcher. -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(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:
matchesin interfaceElementMatcher<FieldDescription>- Parameters:
target- The instance to be matched ornull.- Returns:
trueif the given element is matched by this matcher orfalseotherwise.
-