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 java.lang.Object implements ElementMatcher<FieldDescription>
An element matcher for aHashCodeAndEqualsPlugin.ValueHandlingannotation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.matcher.ElementMatcher
ElementMatcher.Junction<S>
-
-
Field Summary
Fields Modifier and Type Field Description private HashCodeAndEqualsPlugin.ValueHandling.SortsortThe matched value.
-
Constructor Summary
Constructors Modifier Constructor Description protectedValueMatcher(HashCodeAndEqualsPlugin.ValueHandling.Sort sort)Creates a new value matcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatches(FieldDescription target)Matches a target against this element matcher.
-
-
-
Field Detail
-
sort
private final HashCodeAndEqualsPlugin.ValueHandling.Sort sort
The matched value.
-
-
Constructor Detail
-
ValueMatcher
protected ValueMatcher(HashCodeAndEqualsPlugin.ValueHandling.Sort sort)
Creates a new value matcher.- Parameters:
sort- The matched value.
-
-
Method Detail
-
matches
public boolean matches(FieldDescription target)
Matches a target against this element matcher.- Specified by:
matchesin interfaceElementMatcher<FieldDescription>- Parameters:
target- The instance to be matched.- Returns:
trueif the given element is matched by this matcher orfalseotherwise.
-
-