com.icesoft.pdf.pobjects
Class Reference

java.lang.Object
  extended bycom.icesoft.pdf.pobjects.Reference

public class Reference
extends Object

The Reference class represents a PDF object reference number. A reference is made of two components:

Since:
1.0

Constructor Summary
Reference(int o, int g)
          Creates a new instance of a Reference.
Reference(Number o, Number g)
          Creates a new instance of a Reference.
 
Method Summary
 boolean equals(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.
 String toString()
          Gets a string summary of the reference objects number and generation number.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Reference

public Reference(Number o,
                 Number g)
Creates a new instance of a Reference.

Parameters:
o - object number
g - generation number

Reference

public Reference(int o,
                 int g)
Creates a new instance of a Reference.

Parameters:
o - object number
g - generation number
Method Detail

hashCode

public int hashCode()
Creates a unique hash code for this reference object.

Returns:
hashcode.

equals

public boolean equals(Object obj)
Indicates whether some other reference object is "equal to" this one.

Parameters:
obj - reference object to compare to this reference.
Returns:
tru,e if the two objects are equal; false, otherwise.

getObjectNumber

public int getObjectNumber()
Gets the object number represented by this reference.

Returns:
object number

getGenerationNumber

public int getGenerationNumber()
Gets the generation number represented by this reference.

Returns:
generation number

toString

public String toString()
Gets a string summary of the reference objects number and generation number.

Returns:
summary of reference object data.