public enum MethodNameEqualityResolver extends Enum<MethodNameEqualityResolver> implements MethodDelegationBinder.AmbiguityResolver
MethodDelegationBinder.AmbiguityResolverthat resolves conflicting bindings by considering equality of a target method's internalName as an indicator for a dominant binding.
For example, if method
source.foocan be bound to methods
targetA.foowill be considered as dominant.
MethodDelegationBinder.AmbiguityResolver.Compound, MethodDelegationBinder.AmbiguityResolver.Directional, MethodDelegationBinder.AmbiguityResolver.NoOp, MethodDelegationBinder.AmbiguityResolver.Resolution
|Enum Constant and Description|
The singleton instance.
|Modifier and Type||Method and Description|
Attempts to resolve to conflicting bindings.
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final MethodNameEqualityResolver INSTANCE
public static MethodNameEqualityResolver values()
for (MethodNameEqualityResolver c : MethodNameEqualityResolver.values()) System.out.println(c);
public static MethodNameEqualityResolver valueOf(String name)
public MethodDelegationBinder.AmbiguityResolver.Resolution resolve(MethodDescription source, MethodDelegationBinder.MethodBinding left, MethodDelegationBinder.MethodBinding right)
source- The source method that was bound to both target methods.
left- The first successful binding of the
right- The second successful binding of the
MethodDelegationBinder.AmbiguityResolver.Resolution.LEFTindicates a successful binding to the
MethodDelegationBinder.AmbiguityResolver.Resolution.RIGHTindicates a successful binding to the
Copyright © 2014–2019. All rights reserved.