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