Package ome.xml.model.primitives
Class PositiveFloat
- java.lang.Object
-
- ome.xml.model.primitives.PrimitiveType<Double>
-
- ome.xml.model.primitives.NonNegativeFloat
-
- ome.xml.model.primitives.PositiveFloat
-
- All Implemented Interfaces:
PrimitiveNumber
public class PositiveFloat extends NonNegativeFloat
A float whose constraints are bound to Java's 64-bit float (double) and a further positive restriction.- Author:
- callan
-
-
Constructor Summary
Constructors Constructor Description PositiveFloat(Double value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Number
getNumberValue()
static PositiveFloat
valueOf(String s)
Returns anPositiveFloat
object holding the value of the specified string.-
Methods inherited from class ome.xml.model.primitives.PrimitiveType
equals, getValue, toString
-
-
-
-
Constructor Detail
-
PositiveFloat
public PositiveFloat(Double value)
-
-
Method Detail
-
getNumberValue
public Number getNumberValue()
- Specified by:
getNumberValue
in interfacePrimitiveNumber
- Overrides:
getNumberValue
in classNonNegativeFloat
-
valueOf
public static PositiveFloat valueOf(String s)
Returns anPositiveFloat
object holding the value of the specified string.- Parameters:
s
- The string to be parsed.- Returns:
- See above.
-
-