public class PositiveInteger extends Object implements OdfDataType
Constructor and Description |
---|
PositiveInteger(int n)
Allocates a PositiveInteger object representing the n argument
|
Modifier and Type | Method and Description |
---|---|
int |
intValue()
Returns the value of this PositiveInteger object as a int primitive
|
static boolean |
isValid(Integer integerValue)
check if the specified Integer instance is a valid positiveInteger data
type
|
String |
toString()
Returns a String Object representing this PositiveInteger's value
|
static PositiveInteger |
valueOf(String stringValue)
Returns a PositiveInteger instance representing the specified String
value
|
public PositiveInteger(int n) throws NumberFormatException
n
- the value of the PositiveIntegerNumberFormatException
- if the given argument is not a valid PostitiveLengthpublic String toString()
public static PositiveInteger valueOf(String stringValue) throws NumberFormatException
stringValue
- a String valueNumberFormatException
- if the given argument is not a valid PostitiveLengthpublic int intValue()
public static boolean isValid(Integer integerValue)
integerValue
- the value to be testedCopyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.