Class NonNegativeFloat

java.lang.Object
ome.xml.model.primitives.PrimitiveType<java.lang.Double>
ome.xml.model.primitives.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.
Author:
callan
  • Constructor Summary

    Constructors 
    Constructor Description
    NonNegativeFloat​(java.lang.Double value)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Number getNumberValue()  
    static NonNegativeFloat valueOf​(java.lang.String s)
    Returns an NonNegativeFloat object holding the value of the specified string.

    Methods inherited from class ome.xml.model.primitives.PrimitiveType

    equals, getValue, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • getNumberValue

      public java.lang.Number getNumberValue()
      Specified by:
      getNumberValue in interface PrimitiveNumber
    • 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.