Class NonNegativeFloat

  • All Implemented Interfaces:
    PrimitiveNumber
    Direct Known Subclasses:
    PositiveFloat

    public class NonNegativeFloat
    extends PrimitiveType<java.lang.Double>
    implements PrimitiveNumber
    A float whose constraints are bound to Java's 64-bit float (double) and a further non-negative restriction.
    • Constructor Detail

      • NonNegativeFloat

        public NonNegativeFloat​(java.lang.Double value)
    • Method Detail

      • valueOf

        public static NonNegativeFloat valueOf​(java.lang.String s)
        Returns an NonNegativeFloat object holding the value of the specified string.
        Parameters:
        s - The string to be parsed.
        Returns:
        See above.