COSObjectable
COSFloat
, COSInteger
public abstract class COSNumber extends COSBase
Modifier and Type | Field | Description |
---|---|---|
static COSInteger |
ONE |
Deprecated.
Use the
COSInteger.ONE constant instead |
static COSInteger |
ZERO |
Deprecated.
Use the
COSInteger.ZERO constant instead |
Constructor | Description |
---|---|
COSNumber() |
Modifier and Type | Method | Description |
---|---|---|
abstract double |
doubleValue() |
This will get the double value of this number.
|
abstract float |
floatValue() |
This will get the float value of this number.
|
static COSNumber |
get(java.lang.String number) |
This factory method will get the appropriate number object.
|
abstract int |
intValue() |
This will get the integer value of this number.
|
abstract long |
longValue() |
This will get the long value of this number.
|
accept, getCOSObject, getFilterManager, isDirect, isNeedToBeUpdate, setDirect, setNeedToBeUpdate
public static final COSInteger ZERO
COSInteger.ZERO
constant insteadpublic static final COSInteger ONE
COSInteger.ONE
constant insteadpublic abstract float floatValue()
public abstract double doubleValue()
public abstract int intValue()
public abstract long longValue()
public static COSNumber get(java.lang.String number) throws java.io.IOException
number
- The string representation of the number.java.io.IOException
- If the string is not a number.