T - The type being resolved.@HashCodeAndEqualsPlugin.Enhance public static class Plugin.Factory.UsingReflection.ArgumentResolver.ForType<T> extends Object implements Plugin.Factory.UsingReflection.ArgumentResolver
Plugin.Factory.UsingReflection.ArgumentResolver.ForIndex, Plugin.Factory.UsingReflection.ArgumentResolver.ForType<T>, Plugin.Factory.UsingReflection.ArgumentResolver.NoOp, Plugin.Factory.UsingReflection.ArgumentResolver.Resolution| Modifier | Constructor and Description |
|---|---|
protected |
ForType(Class<? extends T> type,
T value)
Creates a new argument resolver for a given type.
|
| Modifier and Type | Method and Description |
|---|---|
static <S> Plugin.Factory.UsingReflection.ArgumentResolver |
of(Class<? extends S> type,
S value)
Creates an argument resolver for a given type.
|
Plugin.Factory.UsingReflection.ArgumentResolver.Resolution |
resolve(int index,
Class<?> type)
Attempts the resolution of an argument for a given parameter.
|
public static <S> Plugin.Factory.UsingReflection.ArgumentResolver of(Class<? extends S> type, S value)
S - The type being resolved.type - The type being resolved.value - The instance to resolve for the represented type.public Plugin.Factory.UsingReflection.ArgumentResolver.Resolution resolve(int index, Class<?> type)
resolve in interface Plugin.Factory.UsingReflection.ArgumentResolverindex - The parameter's index.type - The parameter's type.Copyright © 2014–2019. All rights reserved.