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