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