Package com.tom_roush.pdfbox.cos
Class COSObjectKey
- java.lang.Object
-
- com.tom_roush.pdfbox.cos.COSObjectKey
-
- All Implemented Interfaces:
Comparable<COSObjectKey>
public class COSObjectKey extends Object implements Comparable<COSObjectKey>
Object representing the physical reference to an indirect pdf object.
-
-
Constructor Summary
Constructors Constructor Description COSObjectKey(long num, int gen)PDFObjectKey constructor comment.COSObjectKey(COSObject object)PDFObjectKey constructor comment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(COSObjectKey other)booleanequals(Object obj)intgetGeneration()This will get the generation number.longgetNumber()This will get the objects id.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
COSObjectKey
public COSObjectKey(COSObject object)
PDFObjectKey constructor comment.- Parameters:
object- The object that this key will represent.
-
COSObjectKey
public COSObjectKey(long num, int gen)PDFObjectKey constructor comment.- Parameters:
num- The object number.gen- The object generation number.
-
-
Method Detail
-
getGeneration
public int 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.
-
compareTo
public int compareTo(COSObjectKey other)
- Specified by:
compareToin interfaceComparable<COSObjectKey>
-
-