Package ome.xml.model.primitives
Class PositiveLong
java.lang.Object
ome.xml.model.primitives.PrimitiveType<java.lang.Long>
ome.xml.model.primitives.NonNegativeLong
ome.xml.model.primitives.PositiveLong
- All Implemented Interfaces:
PrimitiveNumber
public class PositiveLong extends NonNegativeLong
An integer whose constraints are bound to Java's 64-bit signed integer type
and a further positive restriction.
- Author:
- callan
-
Constructor Summary
Constructors Constructor Description PositiveLong(java.lang.Long value)
-
Method Summary
Modifier and Type Method Description java.lang.Number
getNumberValue()
static PositiveLong
valueOf(java.lang.String s)
Returns anPositiveLong
object holding the value of the specified string.
-
Constructor Details
-
PositiveLong
public PositiveLong(java.lang.Long value)
-
-
Method Details
-
getNumberValue
public java.lang.Number getNumberValue()- Specified by:
getNumberValue
in interfacePrimitiveNumber
- Overrides:
getNumberValue
in classNonNegativeLong
-
valueOf
Returns anPositiveLong
object holding the value of the specified string.- Parameters:
s
- The string to be parsed.- Returns:
- See above.
-