public class NonNegativeDecimal extends Object implements OdfDataType
| Constructor and Description |
|---|
NonNegativeDecimal(double n)
Allocates a NonNegativeDecimal object representing the n argument
|
| Modifier and Type | Method and Description |
|---|---|
double |
doubleValue()
Returns the value of this NonNegativeDecimal object as a double primitive
|
static boolean |
isValid(Double doubleValue)
check if the specified Double instance is a valid nonNegativeDecimal data type
|
String |
toString()
Returns a String Object representing this NonNegativeDecimal's value
|
static NonNegativeDecimal |
valueOf(String stringValue)
Returns a NonNegativeDecimal instance representing the specified String value
|
public NonNegativeDecimal(double n)
throws IllegalArgumentException
n - the value of the NonNegativeDecimalIllegalArgumentException - if the given argument is not a valid NonNegativeDecimalpublic String toString()
public static NonNegativeDecimal valueOf(String stringValue) throws IllegalArgumentException
stringValue - a String valueIllegalArgumentException - if the given argument is not a valid NonNegativeDecimalpublic double doubleValue()
public static boolean isValid(Double doubleValue)
doubleValue - the value to be testedCopyright © 2008–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.