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.ValueHandling
annotation.
-
-
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.Sort
sort
The matched value.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ValueMatcher(HashCodeAndEqualsPlugin.ValueHandling.Sort sort)
Creates a new value matcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(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:
matches
in interfaceElementMatcher<FieldDescription>
- Parameters:
target
- The instance to be matched.- Returns:
true
if the given element is matched by this matcher orfalse
otherwise.
-
-