@HashCodeAndEqualsPlugin.Enhance public static class Plugin.Factory.UsingReflection.ArgumentResolver.ForIndex.WithDynamicType extends Object implements Plugin.Factory.UsingReflection.ArgumentResolver
valueOf
method on the target type, if it exists. As an exception, the char
and Character
types are resolved if the string value represents a single character.Plugin.Factory.UsingReflection.ArgumentResolver.ForIndex, Plugin.Factory.UsingReflection.ArgumentResolver.ForType<T>, Plugin.Factory.UsingReflection.ArgumentResolver.NoOp, Plugin.Factory.UsingReflection.ArgumentResolver.Resolution
Constructor and Description |
---|
WithDynamicType(int index,
String value)
Creates an argument resolver for a specific parameter index and attempts a dynamic resolution.
|
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 WithDynamicType(int index, String value)
index
- The index of the parameter to resolve.value
- A string representation of the supplied value.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–2020. All rights reserved.