@HashCodeAndEqualsPlugin.Enhance protected static class HashCodeAndEqualsPlugin.ValueMatcher extends java.lang.Object implements ElementMatcher<FieldDescription>
HashCodeAndEqualsPlugin.ValueHandling
annotation.ElementMatcher.Junction<S>
Modifier and Type | Field and Description |
---|---|
private HashCodeAndEqualsPlugin.ValueHandling.Sort |
sort
The matched value.
|
Modifier | Constructor and Description |
---|---|
protected |
ValueMatcher(HashCodeAndEqualsPlugin.ValueHandling.Sort sort)
Creates a new value matcher.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(FieldDescription target)
Matches a target against this element matcher.
|
private final HashCodeAndEqualsPlugin.ValueHandling.Sort sort
protected ValueMatcher(HashCodeAndEqualsPlugin.ValueHandling.Sort sort)
sort
- The matched value.public boolean matches(FieldDescription target)
matches
in interface ElementMatcher<FieldDescription>
target
- The instance to be matched.true
if the given element is matched by this matcher or false
otherwise.