@HashCodeAndEqualsPlugin.Enhance public static class Plugin.Factory.UsingReflection.ArgumentResolver.ForIndex extends Object implements Plugin.Factory.UsingReflection.ArgumentResolver
Modifier and Type | Class and Description |
---|---|
static class |
Plugin.Factory.UsingReflection.ArgumentResolver.ForIndex.WithDynamicType
An argument resolver that resolves an argument for a specific parameter index by attempting a conversion via
invoking a static
valueOf method on the target type, if it exists. |
Plugin.Factory.UsingReflection.ArgumentResolver.ForIndex, Plugin.Factory.UsingReflection.ArgumentResolver.ForType<T>, Plugin.Factory.UsingReflection.ArgumentResolver.NoOp, Plugin.Factory.UsingReflection.ArgumentResolver.Resolution
Constructor and Description |
---|
ForIndex(int index,
Object value)
Creates an argument resolver for a given index.
|
Modifier and Type | Method and Description |
---|---|
Plugin.Factory.UsingReflection.ArgumentResolver.Resolution |
resolve(int index,
Class<?> type)
Attempts the resolution of an argument for a given parameter.
|
public ForIndex(int index, @MaybeNull Object value)
index
- The index of the parameter to resolve.value
- The value to resolve for the represented index.public Plugin.Factory.UsingReflection.ArgumentResolver.Resolution resolve(int index, Class<?> type)
resolve
in interface Plugin.Factory.UsingReflection.ArgumentResolver
index
- The parameter's index.type
- The parameter's type.Copyright © 2014–2022. All rights reserved.