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>
  • Constructor Details

    • FunctionalParameterConverter

      public FunctionalParameterConverter(Class<S> sourceType, Class<T> targetType, Function<S,T> converterFunction)
    • FunctionalParameterConverter

      protected FunctionalParameterConverter(Function<S,T> converterFunction)
  • Method Details

    • 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 a boolean to a String.
      Parameters:
      value - the value to be converted
      type - the type descriptor that supplies extra information about the requested result type
      Returns:
      the converted value