public final class COSInteger extends COSNumber
| Modifier and Type | Field and Description |
|---|---|
static COSInteger |
ONE |
static COSInteger |
THREE |
static COSInteger |
TWO |
static COSInteger |
ZERO |
| Constructor and Description |
|---|
COSInteger(long value)
creates a COSInteger that is not cached
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(COSVisitor visitor)
Visitor pattern for the COS model objects
|
double |
doubleValue() |
boolean |
equals(Object o) |
float |
floatValue() |
static COSInteger |
get(long key)
Factory method for a COSInteger instance with the given value.
|
int |
hashCode() |
int |
intValue() |
long |
longValue() |
String |
toString() |
getCOSObject, hasId, id, idIfAbsentpublic static final COSInteger ZERO
public static final COSInteger ONE
public static final COSInteger TWO
public static final COSInteger THREE
public static COSInteger get(long key)
val - integer valuepublic float floatValue()
floatValue in class COSNumberpublic double doubleValue()
doubleValue in class COSNumberpublic int intValue()
public long longValue()
public void accept(COSVisitor visitor) throws IOException
COSBaseaccept in class COSBaseIOExceptionCopyright © 2020 sejda. All rights reserved.