Package ome.xml.model.primitives
Class PositiveLong
- java.lang.Object
-
- ome.xml.model.primitives.PrimitiveType<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(Long value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Number
getNumberValue()
static PositiveLong
valueOf(String s)
Returns anPositiveLong
object holding the value of the specified string.-
Methods inherited from class ome.xml.model.primitives.PrimitiveType
equals, getValue, toString
-
-
-
-
Constructor Detail
-
PositiveLong
public PositiveLong(Long value)
-
-
Method Detail
-
getNumberValue
public Number getNumberValue()
- Specified by:
getNumberValue
in interfacePrimitiveNumber
- Overrides:
getNumberValue
in classNonNegativeLong
-
valueOf
public static PositiveLong valueOf(String s)
Returns anPositiveLong
object holding the value of the specified string.- Parameters:
s
- The string to be parsed.- Returns:
- See above.
-
-