public class ZeroToOneDecimal extends Object implements OdfDataType
| Constructor and Description |
|---|
ZeroToOneDecimal(double n)
Allocates a ZeroToOneDecimal object representing the n argument
|
| Modifier and Type | Method and Description |
|---|---|
double |
doubleValue()
Returns the value of this ZeroToOneDecimal object as a double primitive
|
static boolean |
isValid(Double doubleValue)
check if the specified Double instance is a valid zeroToOneDecimal data type
|
String |
toString()
Returns a String Object representing this ZeroToOneDecimal's value
|
static ZeroToOneDecimal |
valueOf(String stringValue)
Returns a ZeroToOneDecimal instance representing the specified String value
|
public ZeroToOneDecimal(double n)
throws IllegalArgumentException
n - the value of the ZeroToOneDecimalIllegalArgumentException - if the given argument is not a valid ZeroToOneDecimalpublic String toString()
public static ZeroToOneDecimal valueOf(String stringValue) throws IllegalArgumentException
stringValue - a String valueIllegalArgumentException - if the given argument is not a valid ZeroToOneDecimalpublic 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.