public class PdfNumber extends PdfPrimitiveObject
content, directOnlyARRAY, BOOLEAN, DICTIONARY, FLUSHED, FORBID_RELEASE, FREE, INDIRECT_REFERENCE, indirectReference, LITERAL, MODIFIED, MUST_BE_FLUSHED, MUST_BE_INDIRECT, NAME, NULL, NUMBER, ORIGINAL_OBJECT_STREAM, READ_ONLY, READING, STREAM, STRING, UNENCRYPTED| Constructor and Description |
|---|
PdfNumber(byte[] content) |
PdfNumber(double value) |
PdfNumber(int value) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
copyContent(PdfObject from, PdfDocument document)
Copies object content from object 'from'.
|
void |
decrement() |
double |
doubleValue() |
boolean |
equals(Object o) |
float |
floatValue() |
protected void |
generateContent() |
protected void |
generateValue() |
byte |
getType()
Gets object type.
|
double |
getValue() |
boolean |
hasDecimalPoint()
Checks if string representation of the value contains decimal point.
|
int |
hashCode() |
void |
increment() |
int |
intValue() |
protected boolean |
isDoubleNumber() |
long |
longValue() |
protected PdfObject |
newInstance()
Creates new instance of object.
|
void |
setValue(double value) |
void |
setValue(int value) |
String |
toString() |
compareContent, getInternalContent, hasContent, makeIndirect, setIndirectReferencecheckState, clearState, clone, copyTo, copyTo, flush, flush, getIndirectReference, isArray, isBoolean, isDictionary, isFlushed, isIndirect, isIndirectReference, isLiteral, isModified, isName, isNull, isNumber, isReleaseForbidden, isStream, isString, makeIndirect, release, setModified, setStatepublic PdfNumber(double value)
public PdfNumber(int value)
public PdfNumber(byte[] content)
public byte getType()
PdfObject
public double getValue()
public double doubleValue()
public float floatValue()
public long longValue()
public int intValue()
public void setValue(int value)
public void setValue(double value)
public void increment()
public void decrement()
public boolean hasDecimalPoint()
protected PdfObject newInstance()
PdfObject
newInstance in class PdfObject
protected boolean isDoubleNumber()
protected void generateContent()
generateContent in class PdfPrimitiveObject
protected void generateValue()
protected void copyContent(PdfObject from, PdfDocument document)
PdfObject
copyContent in class PdfPrimitiveObject
from - object to copy content from.
document - document to copy object to.
Copyright © 1998–2021 iText Group NV. All rights reserved.