Package ome.xml.model.primitives
Class NonNegativeInteger
java.lang.Object
ome.xml.model.primitives.PrimitiveType<java.lang.Integer>
ome.xml.model.primitives.NonNegativeInteger
- All Implemented Interfaces:
PrimitiveNumber
- Direct Known Subclasses:
PositiveInteger
public class NonNegativeInteger extends PrimitiveType<java.lang.Integer> implements PrimitiveNumber
An integer whose constraints are bound to Java's 32-bit signed integer type
and a further non-negative restriction.
- Author:
- callan
-
Constructor Summary
Constructors Constructor Description NonNegativeInteger(java.lang.Integer value)
-
Method Summary
Modifier and Type Method Description java.lang.Number
getNumberValue()
static NonNegativeInteger
valueOf(java.lang.String s)
Returns anNonNegativeInteger
object holding the value of the specified string.
-
Constructor Details
-
NonNegativeInteger
public NonNegativeInteger(java.lang.Integer value)
-
-
Method Details
-
getNumberValue
public java.lang.Number getNumberValue()- Specified by:
getNumberValue
in interfacePrimitiveNumber
-
valueOf
Returns anNonNegativeInteger
object holding the value of the specified string.- Parameters:
s
- The string to be parsed.- Returns:
- See above.
-