Class DurationParam


  • public class DurationParam
    extends FixedParam<Duration>
    Is a parameter with a Duration value.
    Since:
    0.45
    • Constructor Detail

      • DurationParam

        public DurationParam​(String expression,
                             Duration defaultValue)
      • DurationParam

        public DurationParam​(Duration value)
    • Method Detail

      • getImports

        public Set<String> getImports()
        Description copied from class: MethodParam
        Gets all classes that are required to be statically imported by generated code.

        Override this method if you implement a custom MethodParam that requires some particular static import.

        Overrides:
        getImports in class MethodParam
        Returns:
        the set of required classes names that need to be statically imported by generated code.