public class NonNegativeInteger extends Object implements OdfDataType
| Constructor and Description |
|---|
NonNegativeInteger(int n)
Allocates a NonNegativeInteger object representing the n argument
|
| Modifier and Type | Method and Description |
|---|---|
int |
intValue()
Returns the value of this NonNegativeInteger object as a int primitive
|
static boolean |
isValid(Integer integerValue)
check if the specified Integer instance is a valid nonNegativeInteger
data type
|
String |
toString()
Returns a String Object representing this NonNegativeInteger's value
|
static NonNegativeInteger |
valueOf(String stringValue)
Returns a NonNegativeInteger instance representing the specified String
value
|
public NonNegativeInteger(int n)
throws NumberFormatException
n - the value of the NonNegativeIntegerNumberFormatException - if the given argument is not a valid NonNegativeIntegerpublic String toString()
public static NonNegativeInteger valueOf(String stringValue) throws NumberFormatException
stringValue - a String valueNumberFormatException - if the given argument is not a valid NonNegativeIntegerpublic int intValue()
public static boolean isValid(Integer integerValue)
integerValue - the value to be testedCopyright © 2008–2018 Apache Software Foundation; Copyright © 2018–2019 The Document Foundation. All rights reserved.