PdfInteger
Overview
PdfInteger is a class in Aspose.PDF FOSS for Java.
Inherits from: PdfBase.
PDF integer object (§7.3.3, ISO 32000-1:2008).
This class provides 14 methods for working with PdfInteger objects in Java programs.
Available methods include: accept, equals, floatValue, getObjectKey, hashCode, intValue, isDirty, isIndirect, longValue, setDirty, setObjectKey, toString, and 2 additional methods.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: ONE, ZERO, dirty, indirect, objectKey.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
ZERO | PdfInteger | Read | The constant for value 0. |
ONE | PdfInteger | Read | The constant for value 1. |
dirty | boolean | Read | Returns {@code true} if this object was modified since loading. |
indirect | boolean | Read | Returns whether this object is an indirect object (has an object key). |
objectKey | PdfObjectKey | Read | Returns the indirect object key, or {@code null} for direct objects. |
Methods
| Signature | Description |
|---|---|
valueOf(value: long) → PdfInteger | Returns a PdfInteger for the given value. |
longValue() → long | Returns the value as a {@code long}. |
intValue() → int | Returns the value as an {@code int}, throwing if it overflows. |
floatValue() → float | Returns the value as a {@code float}. |
setObjectKey(key: PdfObjectKey) | Protects cached flyweight instances from object key assignment. |
writeTo(os: OutputStream) | |
accept(visitor: IPdfVisitor<T>) → T | |
equals(o: Object) → boolean | |
hashCode() → int | |
toString() → String | |
isDirty() → boolean | Returns {@code true} if this object was modified since loading. |
setDirty(dirty: boolean) | Sets the dirty flag on this object. |
isIndirect() → boolean | Returns whether this object is an indirect object (has an object key). |
getObjectKey() → PdfObjectKey | Returns the indirect object key, or {@code null} for direct objects. |