Class COSObjectKey
java.lang.Object
org.apache.pdfbox.persistence.util.COSObjectKey
- All Implemented Interfaces:
Comparable<COSObjectKey>
Object representing the physical reference to an indirect pdf object.
- Version:
- $Revision: 1.5 $
- Author:
- Michael Traut
-
Constructor Summary
ConstructorsConstructorDescriptionCOSObjectKey
(long num, long gen) Constructor.COSObjectKey
(COSObject object) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(COSObjectKey other) boolean
long
This will get the generation number.long
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.toString()
-
Constructor Details
-
COSObjectKey
Constructor.- Parameters:
object
- The object that this key will represent.
-
COSObjectKey
public COSObjectKey(long num, long gen) Constructor.- Parameters:
num
- The object number.gen
- The object generation number.
-
-
Method Details
-
equals
-
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
-
compareTo
- Specified by:
compareTo
in interfaceComparable<COSObjectKey>
-