Class ParameterTypeNumeric<T extends Number>

    • Constructor Detail

      • ParameterTypeNumeric

        public ParameterTypeNumeric​(String id,
                                    String description,
                                    Class<T> valueClass)
        Constructor without default value and check.
        Parameters:
        id - String; Short name of parameter.
        description - String; Parameter description or full name.
        valueClass - Class<T>; Class of the value.
      • ParameterTypeNumeric

        public ParameterTypeNumeric​(String id,
                                    String description,
                                    Class<T> valueClass,
                                    T defaultValue)
        Constructor with default value, without check.
        Parameters:
        id - String; Short name of parameter.
        description - String; Parameter description or full name.
        valueClass - Class<T>; Class of the value.
        defaultValue - T; Default value.
      • ParameterTypeNumeric

        public ParameterTypeNumeric​(String id,
                                    String description,
                                    Class<T> valueClass,
                                    Constraint<? super T> constraint)
        Constructor without default value, with check.
        Parameters:
        id - String; Short name of parameter.
        description - String; Parameter description or full name.
        valueClass - Class<T>; Class of the value.
        constraint - Constraint<? super T>; Constraint for parameter values.
      • ParameterTypeNumeric

        public ParameterTypeNumeric​(String id,
                                    String description,
                                    Class<T> valueClass,
                                    T defaultValue,
                                    Constraint<? super T> constraint)
        Constructor with default value and check.
        Parameters:
        id - String; Short name of parameter.
        description - String; Parameter description or full name.
        valueClass - Class<T>; Class of the value.
        defaultValue - T; Default value.
        constraint - Constraint<? super T>; Constraint for parameter values.
    • Method Detail

      • printValue

        public String printValue​(Parameters parameters)
                          throws ParameterException
        Print the given value from the map in Parameters in a presentable format. The default implementation simply returns the output of toString().
        Overrides:
        printValue in class ParameterType<T extends Number>
        Parameters:
        parameters - Parameters; Parameters to get the value from
        Returns:
        String; readable representation of the value
        Throws:
        ParameterException - If the parameter is not present