Interface ParameterTransformer<T>

Type Parameters:
T - class of the input parameter
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ParameterTransformer<T>
Transformer can process input parameter values before they are passed to the reporting engine. Examples of possible transformations: ordering a collection, rounding date-time to the nearest day.
  • Method Summary

    Modifier and Type
    Method
    Description
    transform(T value, Map<String,Object> parameterValues)
    Transform input parameter's value, possibly even changing its type.
  • Method Details

    • transform

      Object transform(T value, Map<String,Object> parameterValues)
      Transform input parameter's value, possibly even changing its type.
      Parameters:
      value - source value
      parameterValues - map of all input parameters
      Returns:
      transformed value