public final class COSInteger extends COSNumber
| Modifier and Type | Field and Description |
|---|---|
static COSInteger |
ONE
Constant for the number one.
|
protected static COSInteger |
OUT_OF_RANGE_MAX
Constant for an out of range value which is bigger than Log.MAX_VALUE.
|
protected static COSInteger |
OUT_OF_RANGE_MIN
Constant for an out of range value which is smaller than Log.MIN_VALUE.
|
static COSInteger |
THREE
Constant for the number three.
|
static COSInteger |
TWO
Constant for the number two.
|
static COSInteger |
ZERO
Constant for the number zero.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ICOSVisitor visitor)
visitor pattern double dispatch method.
|
boolean |
equals(Object o) |
float |
floatValue()
polymorphic access to value as float.
|
static COSInteger |
get(long val)
Returns a COSInteger instance with the given value.
|
int |
hashCode() |
int |
intValue()
Polymorphic access to value as int
This will get the integer value of this object.
|
boolean |
isValid()
Indicates whether this instance represents a valid value.
|
long |
longValue()
Polymorphic access to value as int
This will get the integer value of this object.
|
String |
toString() |
void |
writePDF(OutputStream output)
This will output this string as a PDF object.
|
public static final COSInteger ZERO
public static final COSInteger ONE
public static final COSInteger TWO
public static final COSInteger THREE
protected static final COSInteger OUT_OF_RANGE_MAX
protected static final COSInteger OUT_OF_RANGE_MIN
public static COSInteger get(long val)
val - integer valuepublic float floatValue()
floatValue in class COSNumberpublic int intValue()
public long longValue()
public boolean isValid()
public void accept(ICOSVisitor visitor) throws IOException
accept in class COSBasevisitor - The object to notify when visiting this object.IOException - If an error occurs while visiting this object.public void writePDF(OutputStream output) throws IOException
output - The stream to write to.IOException - If there is an error writing to the stream.Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.