PJX

com.etymon.pjx
Class PdfLong

java.lang.Object
  extended bycom.etymon.pjx.PdfObject
      extended bycom.etymon.pjx.PdfNumber
          extended bycom.etymon.pjx.PdfLong
All Implemented Interfaces:
java.lang.Cloneable

public class PdfLong
extends PdfNumber

Represents a long integer value to be used with byte offsets such as the Prev entry of a document trailer dictionary.


Constructor Summary
PdfLong(long n)
          Constructs an long integer object representing a long value.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares this instance with another PDF object for equality.
 float getFloat()
          Returns the float value of this number.
 int getInt()
          Returns the int value of this number.
 long getLong()
          Returns the long value of this number.
 int hashCode()
          Returns a hash code for this object.
 
Methods inherited from class com.etymon.pjx.PdfObject
clone, filter, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PdfLong

public PdfLong(long n)
Constructs an long integer object representing a long value.

Parameters:
n - the long value.
Method Detail

equals

public boolean equals(java.lang.Object obj)
Description copied from class: PdfObject
Compares this instance with another PDF object for equality.

Overrides:
equals in class PdfObject
Parameters:
obj - the object to compare this instance with.
Returns:
true if the PDF objects are equal.

getInt

public int getInt()
Description copied from class: PdfNumber
Returns the int value of this number.

Specified by:
getInt in class PdfNumber
Returns:
the int value.

getLong

public long getLong()
Description copied from class: PdfNumber
Returns the long value of this number.

Specified by:
getLong in class PdfNumber
Returns:
the long value.

getFloat

public float getFloat()
Description copied from class: PdfNumber
Returns the float value of this number.

Specified by:
getFloat in class PdfNumber
Returns:
the float value.

hashCode

public int hashCode()
Description copied from class: PdfObject
Returns a hash code for this object.

Overrides:
hashCode in class PdfObject
Returns:
the hash code.

Copyright © 1998-2004 Etymon Systems, Inc.

The PDF data structures, operators, and specification are
Copyright © 1985-2004 Adobe Systems Incorporated.