Interface ParameterUpdater<T,R>
- Type Parameters:
T
- custom Java typeR
- String / Collection<String>> type
public interface ParameterUpdater<T,R>
Provider that converts the an object of a custom Java type
values to String / Collection<String>> type
- Author:
- Paul Sandoz, Marek Potociar, Gaurav Gupta (gaurav.gupta@payara.fish)
-
Method Summary
Modifier and TypeMethodDescriptionDefault value (string) that will be used in case input value is not available.getName()
Name of the parameter to be udpatedUpdate the value using ParamConverter#toString (and using the configureddefault value
)
-
Method Details
-
getName
String getName()Name of the parameter to be udpated- Returns:
- name of the updated parameter.
-
getDefaultValueString
String getDefaultValueString()Default value (string) that will be used in case input value is not available.- Returns:
- default (back-up) value.
-
update
Update the value using ParamConverter#toString (and using the configureddefault value
)- Parameters:
parameters
- custom Java type instance value.- Returns:
- converted value.
-