Class DoubleArgument.DoubleParser<C>

    • Constructor Detail

      • DoubleParser

        public DoubleParser​(double min,
                            double max)
        Construct a new double parser
        Parameters:
        min - Minimum value
        max - Maximum value
    • Method Detail

      • isContextFree

        public boolean isContextFree()
        Description copied from interface: ArgumentParser
        Check whether or not this argument parser is context free. A context free parser will not use the provided command context, and so supports impromptu parsing
        Specified by:
        isContextFree in interface ArgumentParser<C,​Double>
        Returns:
        true if the parser is context free, else false
      • getMax

        public double getMax()
        Get the max value
        Returns:
        Max value
      • getMin

        public double getMin()
        Get the min value
        Returns:
        Min value