Class NumberParameter<P extends NumberParameter<P,​T>,​T extends java.lang.Number>

  • Type Parameters:
    P - type self-reference
    T - the type of a possible value (i.e., the type of the option)
    All Implemented Interfaces:
    Parameter<T>
    Direct Known Subclasses:
    DoubleParameter, IntParameter, LongParameter

    public abstract class NumberParameter<P extends NumberParameter<P,​T>,​T extends java.lang.Number>
    extends AbstractParameter<P,​T>
    Abstract class for defining a number parameter.
    Since:
    0.1
    Author:
    Steffi Wanka, Erich Schubert
    • Constructor Detail

      • NumberParameter

        public NumberParameter​(OptionID optionID,
                               T defaultValue)
        Constructs a number parameter with the given optionID and default Value.
        Parameters:
        optionID - the unique id of this parameter
        defaultValue - the default value for this parameter
      • NumberParameter

        public NumberParameter​(OptionID optionID)
        Constructs a number parameter with the given optionID.
        Parameters:
        optionID - the unique id of this parameter