Package org.jbehave.core.steps
Class ParameterConverters.FunctionalParameterConverter<S,T>
- java.lang.Object
-
- org.jbehave.core.steps.ParameterConverters.AbstractParameterConverter<S,T>
-
- org.jbehave.core.steps.ParameterConverters.FunctionalParameterConverter<S,T>
-
- All Implemented Interfaces:
ParameterConverters.ParameterConverter<S,T>
- Direct Known Subclasses:
ParameterConverters.ExamplesTableConverter
- Enclosing class:
- ParameterConverters
public static class ParameterConverters.FunctionalParameterConverter<S,T> extends ParameterConverters.AbstractParameterConverter<S,T>
-
-
Method Summary
Modifier and Type Method Description T
convertValue(S value, Type type)
Convert the value from one type to another, for example from aboolean
to aString
.-
Methods inherited from class org.jbehave.core.steps.ParameterConverters.AbstractParameterConverter
canConvertFrom, canConvertTo, getSourceType, getTargetType
-
-
-
-
Method Detail
-
convertValue
public T convertValue(S value, Type type)
Description copied from interface:ParameterConverters.ParameterConverter
Convert the value from one type to another, for example from aboolean
to aString
.- Parameters:
value
- the value to be convertedtype
- the type descriptor that supplies extra information about the requested result type- Returns:
- the converted value
-
-