Package ome.xml.model.primitives
Class PercentFraction
- java.lang.Object
-
- ome.xml.model.primitives.PrimitiveType<Float>
-
- ome.xml.model.primitives.PercentFraction
-
- All Implemented Interfaces:
PrimitiveNumber
public class PercentFraction extends PrimitiveType<Float> implements PrimitiveNumber
A floating point value whose constraints are bound to Java's 32-bit floating point type and a further 0.0f minimum and 1.0f maximum.- Author:
- callan
-
-
Constructor Summary
Constructors Constructor Description PercentFraction(Float value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Number
getNumberValue()
static PercentFraction
valueOf(String s)
Returns anPercentFraction
object holding the value of the specified string.-
Methods inherited from class ome.xml.model.primitives.PrimitiveType
equals, getValue, toString
-
-
-
-
Constructor Detail
-
PercentFraction
public PercentFraction(Float value)
-
-
Method Detail
-
getNumberValue
public Number getNumberValue()
- Specified by:
getNumberValue
in interfacePrimitiveNumber
-
valueOf
public static PercentFraction valueOf(String s)
Returns anPercentFraction
object holding the value of the specified string.- Parameters:
s
- The string to be parsed.- Returns:
- See above.
-
-