public class Reference
extends java.lang.Object
implements java.io.Serializable
The Reference class represents a PDF object reference number.
A reference is made of two components:
| Constructor and Description |
|---|
Reference(int o,
int g)
Creates a new instance of a Reference.
|
Reference(java.lang.Number o,
java.lang.Number g)
Creates a new instance of a Reference.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether some other reference object is "equal to" this one.
|
int |
getGenerationNumber()
Gets the generation number represented by this reference.
|
int |
getObjectNumber()
Gets the object number represented by this reference.
|
int |
hashCode()
Creates a unique hash code for this reference object.
|
java.lang.String |
toString()
Gets a string summary of the reference objects number and generation number.
|
public Reference(java.lang.Number o,
java.lang.Number g)
o - object numberg - generation numberpublic Reference(int o,
int g)
o - object numberg - generation numberpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - reference object to compare to this reference.public int getObjectNumber()
public int getGenerationNumber()
public java.lang.String toString()
toString in class java.lang.Object