java.lang.Comparable<COSObjectKey>
public class COSObjectKey extends java.lang.Object implements java.lang.Comparable<COSObjectKey>
Constructor | Description |
---|---|
COSObjectKey(long num,
long gen) |
PDFObjectKey constructor comment.
|
COSObjectKey(COSObject object) |
PDFObjectKey constructor comment.
|
Modifier and Type | Method | Description |
---|---|---|
int |
compareTo(COSObjectKey other) |
|
boolean |
equals(java.lang.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.
|
java.lang.String |
toString() |
public COSObjectKey(COSObject object)
object
- The object that this key will represent.public COSObjectKey(long num, long gen)
num
- The object number.gen
- The object generation number.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public long getGeneration()
public long getNumber()
public int hashCode()
hashCode
in class java.lang.Object
public void setGeneration(long newGeneration)
newGeneration
- The objects generation number.public void setNumber(long newNumber)
newNumber
- The objects number.public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(COSObjectKey other)
compareTo
in interface java.lang.Comparable<COSObjectKey>