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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetDefaultValueString()Default value (string) that will be used in case input value is not available.StringgetName()Name of the parameter to be udpatedRupdate(T parameters)Update the value using ParamConverter#toString (and using the configureddefault value)
-
-
-
Method Detail
-
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
R update(T parameters)
Update the value using ParamConverter#toString (and using the configureddefault value)- Parameters:
parameters- custom Java type instance value.- Returns:
- converted value.
-
-