|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.odftoolkit.odfdom.type.Percent
public class Percent
This class represents the in OpenDocument format used data type percent
| Constructor Summary | |
|---|---|
Percent(double n)
Allocates a Percent object representing the n argument |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Percent(double n)
throws IllegalArgumentException
n - the value of the Percent
IllegalArgumentException - if the given argument is not a valid Percent| Method Detail |
|---|
public String toString()
toString in class Object
public static Percent valueOf(String stringValue)
throws IllegalArgumentException
stringValue - a String value
IllegalArgumentException - if the given argument is not a valid Percentpublic double doubleValue()
public static boolean isValid(Double doubleValue)
doubleValue - the value to be tested
public static boolean isValid(String stringValue)
stringValue - the value to be tested
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||