Class FloatParameterType


  • public class FloatParameterType
    extends ParameterType<Float>
    This class represent a parameter type that is a float. This type defines a lower limit and an upper limit for the range of allowed values.
    Version:
    2.0
    Author:
    Samuel, Nicklas
    Last modified
    $Date: 2012-09-14 09:28:35 +0200 (fr, 14 sep 2012) $
    • Field Detail

      • lowerLimit

        private final Float lowerLimit
        The lower limit of the parameter.
      • upperLimit

        private final Float upperLimit
        The upper limit of the parameter.
    • Constructor Detail

      • FloatParameterType

        public FloatParameterType()
        Create a new float parameter type, without any limits and allowing null values.
      • FloatParameterType

        public FloatParameterType​(Float lowerLimit,
                                  Float upperLimit,
                                  Float defaultValue,
                                  boolean notNull)
        Create a new float parameter type.
        Parameters:
        lowerLimit - The lowest allowed value, or null to have no limit
        upperLimit - The highest allowed value, or null to have no limit
        defaultValue - A value to use by default with the parameter.
        notNull - FALSE if nulls values are allowed, TRUE otherwise
      • FloatParameterType

        public FloatParameterType​(Float lowerLimit,
                                  Float upperLimit,
                                  Float defaultValue,
                                  boolean notNull,
                                  int multiplicity,
                                  int width,
                                  int height,
                                  List<Float> items)