Class NonNegativeFloat

java.lang.Object
ome.xml.model.primitives.PrimitiveType<Double>
ome.xml.model.primitives.NonNegativeFloat
All Implemented Interfaces:
PrimitiveNumber
Direct Known Subclasses:
PositiveFloat

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

    • NonNegativeFloat

      public NonNegativeFloat(Double value)
  • Method Details

    • getNumberValue

      public Number getNumberValue()
      Specified by:
      getNumberValue in interface PrimitiveNumber
    • valueOf

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