Package net.bytebuddy.build
Class HashCodeAndEqualsPlugin.ValueMatcher
java.lang.Object
net.bytebuddy.matcher.ElementMatcher.Junction.AbstractBase<FieldDescription>
net.bytebuddy.matcher.ElementMatcher.Junction.ForNonNullValues<FieldDescription>
net.bytebuddy.build.HashCodeAndEqualsPlugin.ValueMatcher
- All Implemented Interfaces:
ElementMatcher<FieldDescription>
,ElementMatcher.Junction<FieldDescription>
- Enclosing class:
HashCodeAndEqualsPlugin
@Enhance
protected static class HashCodeAndEqualsPlugin.ValueMatcher
extends ElementMatcher.Junction.ForNonNullValues<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>
Nested classes/interfaces inherited from interface net.bytebuddy.matcher.ElementMatcher.Junction
ElementMatcher.Junction.AbstractBase<V>, ElementMatcher.Junction.Conjunction<W>, ElementMatcher.Junction.Disjunction<W>, ElementMatcher.Junction.ForNonNullValues<W>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HashCodeAndEqualsPlugin.ValueHandling.Sort
The matched value. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Creates a new value matcher. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
doMatch
(FieldDescription target) Matches the supplied value if it was found not to benull
.Methods inherited from class net.bytebuddy.matcher.ElementMatcher.Junction.ForNonNullValues
matches
Methods inherited from class net.bytebuddy.matcher.ElementMatcher.Junction.AbstractBase
and, or
-
Field Details
-
sort
The matched value.
-
-
Constructor Details
-
ValueMatcher
Creates a new value matcher.- Parameters:
sort
- The matched value.
-
-
Method Details
-
doMatch
Matches the supplied value if it was found not to benull
.- Specified by:
doMatch
in classElementMatcher.Junction.ForNonNullValues<FieldDescription>
- Parameters:
target
- The instance to be matched.- Returns:
true
if the given element is matched by this matcher orfalse
otherwise.
-