java.lang.Object
com.lowagie.text.pdf.PdfObject
com.lowagie.text.pdf.PdfNumber
- All Implemented Interfaces:
Comparable<PdfNumber>
Deprecated.
PdfNumber provides two types of numbers, integer and real.
Integers may be specified by signed or unsigned constants. Reals may only be in decimal format.
This object is
described in the 'Portable Document Format Reference Manual version 1.7' section 3.3.2 (page 52-53).
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionPdfNumber(double value) Deprecated.Constructs a newPdfNumber-object of type real.PdfNumber(float value) Deprecated.Constructs a newPdfNumber-object of type real.PdfNumber(int value) Deprecated.Constructs a newPdfNumber-object of type integer.PdfNumber(long value) Deprecated.Constructs a newPdfNumber-object of type long.Deprecated.Constructs aPdfNumber-object. -
Method Summary
Modifier and TypeMethodDescriptionintDeprecated.doubleDeprecated.Returns the primitivedoublevalue of this object.booleanDeprecated.floatDeprecated.Returns the primitivefloatvalue of this object.inthashCode()Deprecated.voidDeprecated.Increments the value of thePdfNumber-object by 1.intintValue()Deprecated.Returns the primitiveintvalue of this object.Methods inherited from class com.lowagie.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, toPdf, toString, type
-
Constructor Details
-
PdfNumber
Deprecated.Constructs aPdfNumber-object.- Parameters:
content- value of the newPdfNumber-object
-
PdfNumber
public PdfNumber(int value) Deprecated.Constructs a newPdfNumber-object of type integer.- Parameters:
value- value of the newPdfNumber-object
-
PdfNumber
public PdfNumber(long value) Deprecated.Constructs a newPdfNumber-object of type long.- Parameters:
value- value of the newPdfNumber-object
-
PdfNumber
public PdfNumber(double value) Deprecated.Constructs a newPdfNumber-object of type real.- Parameters:
value- value of the newPdfNumber-object
-
PdfNumber
public PdfNumber(float value) Deprecated.Constructs a newPdfNumber-object of type real.- Parameters:
value- value of the newPdfNumber-object
-
-
Method Details
-
intValue
public int intValue()Deprecated.Returns the primitiveintvalue of this object.- Returns:
- The value as
int
-
doubleValue
public double doubleValue()Deprecated.Returns the primitivedoublevalue of this object.- Returns:
- The value as
double
-
floatValue
public float floatValue()Deprecated.Returns the primitivefloatvalue of this object.- Returns:
- The value as
float
-
increment
public void increment()Deprecated.Increments the value of thePdfNumber-object by 1. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
compareTo
Deprecated.- Specified by:
compareToin interfaceComparable<PdfNumber>
-