Package org.apache.pdfbox.cos
Class COSObjectKey
java.lang.Object
org.apache.pdfbox.cos.COSObjectKey
- All Implemented Interfaces:
Comparable<COSObjectKey>
Object representing the physical reference to an indirect pdf object.
- Author:
- Michael Traut
-
Constructor Summary
ConstructorsConstructorDescriptionCOSObjectKey
(long num, int gen) Constructor.COSObjectKey
(COSObject object) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(COSObjectKey other) boolean
void
fixGeneration
(int genNumber) This will set the generation number.int
This will get the generation number.long
This will get the objects id.int
hashCode()
toString()
-
Constructor Details
-
COSObjectKey
Constructor.- Parameters:
object
- The object that this key will represent.
-
COSObjectKey
public COSObjectKey(long num, int gen) Constructor.- Parameters:
num
- The object number.gen
- The object generation number.
-
-
Method Details
-
equals
-
getGeneration
public int getGeneration()This will get the generation number.- Returns:
- The objects generation number.
-
fixGeneration
public void fixGeneration(int genNumber) This will set the generation number. It is intended for fixes only.- Parameters:
genNumber
- the new generation number.
-
getNumber
public long getNumber()This will get the objects id.- Returns:
- The object's id.
-
hashCode
public int hashCode() -
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<COSObjectKey>
-