Package ome.xml.model.primitives
Class PercentFraction
java.lang.Object
ome.xml.model.primitives.PrimitiveType<java.lang.Float>
ome.xml.model.primitives.PercentFraction
- All Implemented Interfaces:
PrimitiveNumber
public class PercentFraction extends PrimitiveType<java.lang.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(java.lang.Float value)
-
Method Summary
Modifier and Type Method Description java.lang.Number
getNumberValue()
static PercentFraction
valueOf(java.lang.String s)
Returns anPercentFraction
object holding the value of the specified string.
-
Constructor Details
-
PercentFraction
public PercentFraction(java.lang.Float value)
-
-
Method Details
-
getNumberValue
public java.lang.Number getNumberValue()- Specified by:
getNumberValue
in interfacePrimitiveNumber
-
valueOf
Returns anPercentFraction
object holding the value of the specified string.- Parameters:
s
- The string to be parsed.- Returns:
- See above.
-