public static class MethodDelegationBinder.AmbiguityResolver.Chain extends Object implements MethodDelegationBinder.AmbiguityResolver
MethodDelegationBinder.AmbiguityResolvers
that are applied in the given order until two bindings can be resolved.MethodDelegationBinder.AmbiguityResolver.Chain, MethodDelegationBinder.AmbiguityResolver.Directional, MethodDelegationBinder.AmbiguityResolver.NoOp, MethodDelegationBinder.AmbiguityResolver.ResolutionDEFAULT| Constructor and Description |
|---|
Chain(List<? extends MethodDelegationBinder.AmbiguityResolver> ambiguityResolvers)
Creates an immutable chain of ambiguity resolvers.
|
Chain(MethodDelegationBinder.AmbiguityResolver... ambiguityResolver)
Creates an immutable chain of ambiguity resolvers.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
MethodDelegationBinder.AmbiguityResolver.Resolution |
resolve(MethodDescription source,
MethodDelegationBinder.MethodBinding left,
MethodDelegationBinder.MethodBinding right)
Attempts to resolve to conflicting bindings.
|
String |
toString() |
public Chain(MethodDelegationBinder.AmbiguityResolver... ambiguityResolver)
ambiguityResolver - The ambiguity resolvers to chain in the order of their application.public Chain(List<? extends MethodDelegationBinder.AmbiguityResolver> ambiguityResolvers)
ambiguityResolvers - The ambiguity resolvers to chain in the order of their application.public MethodDelegationBinder.AmbiguityResolver.Resolution resolve(MethodDescription source, MethodDelegationBinder.MethodBinding left, MethodDelegationBinder.MethodBinding right)
MethodDelegationBinder.AmbiguityResolverresolve in interface MethodDelegationBinder.AmbiguityResolversource - The source method that was bound to both target methods.left - The first successful binding of the source method.right - The second successful binding of the source method.MethodDelegationBinder.AmbiguityResolver.Resolution.LEFT
indicates a successful binding to the left binding while
MethodDelegationBinder.AmbiguityResolver.Resolution.RIGHT
indicates a successful binding to the right binding.Copyright © 2014–2016. All rights reserved.