T
- The type of the adjusted element's description.@HashCodeAndEqualsPlugin.Enhance protected static class ModifierAdjustment.Adjustment<T> extends Object implements ElementMatcher<T>
ElementMatcher.Junction<S>
Modifier | Constructor and Description |
---|---|
protected |
Adjustment(ElementMatcher<? super T> matcher,
ModifierContributor.Resolver<?> resolver)
Creates a new adjustment.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(T target)
Matches a target against this element matcher.
|
protected int |
resolve(int modifiers)
Resolves a modifier.
|
protected Adjustment(ElementMatcher<? super T> matcher, ModifierContributor.Resolver<?> resolver)
matcher
- The matcher to determine an adjustment.resolver
- The resolver to apply.public boolean matches(T target)
matches
in interface ElementMatcher<T>
target
- The instance to be matched.true
if the given element is matched by this matcher or false
otherwise.protected int resolve(int modifiers)
modifiers
- The original modifiers.Copyright © 2014–2019. All rights reserved.