public abstract class COSNumber extends COSBase
| Constructor and Description |
|---|
COSNumber() |
| Modifier and Type | Method and Description |
|---|---|
abstract float |
floatValue()
This will get the float value of this number.
|
static COSNumber |
get(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.
|
public abstract float floatValue()
public abstract int intValue()
public abstract long longValue()
public static COSNumber get(String number) throws IOException
number - The string representation of the number.IOException - If the string is not a number.Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.