org.pdfbox.persistence.util

Class COSObjectKey


public class COSObjectKey
extends java.lang.Object

Object representing the physical reference to an indirect pdf object.
Version:
$Revision: 1.5 $
Author:
Michael Traut

Constructor Summary

COSObjectKey(long num, long gen)
PDFObjectKey constructor comment.
COSObjectKey(COSObject object)
PDFObjectKey constructor comment.

Method Summary

boolean
equals(Object obj)
long
getGeneration()
This will get the generation number.
long
getNumber()
This will get the objects id.
int
hashCode()
void
setGeneration(long newGeneration)
This will set the objects generation number.
void
setNumber(long newNumber)
This will set the objects id.
String
toString()

Constructor Details

COSObjectKey

public COSObjectKey(long num,
                    long gen)
PDFObjectKey constructor comment.
Parameters:
num - The object number.
gen - The object generation number.

COSObjectKey

public COSObjectKey(COSObject object)
PDFObjectKey constructor comment.
Parameters:
object - The object that this key will represent.

Method Details

equals

public boolean equals(Object obj)

getGeneration

public long getGeneration()
This will get the generation number.
Returns:
The objects generation number.

getNumber

public long getNumber()
This will get the objects id.
Returns:
The object's id.

hashCode

public int hashCode()

setGeneration

public void setGeneration(long newGeneration)
This will set the objects generation number.
Parameters:
newGeneration - The objects generation number.

setNumber

public void setNumber(long newNumber)
This will set the objects id.
Parameters:
newNumber - The objects number.

toString

public String toString()