Class DoubleValueParser

  • All Implemented Interfaces:
    XMLValueParser<Double>

    public class DoubleValueParser
    extends Object
    implements XMLValueParser<Double>
    Value parser for double values. It validates whether the input string is a double, and it can validate whether the value is within a specified range.
    • Constructor Detail

      • DoubleValueParser

        public DoubleValueParser()
        Constructs a new parser without range validation.
      • DoubleValueParser

        public DoubleValueParser​(Double minVal,
                                 Double maxVal)
        Constructs a new parser with range validation.
        Parameters:
        minVal - the minimum value or null
        maxVal - the maximum value or null