public class COSObjectKey extends Object implements Comparable<COSObjectKey>
Constructor and Description |
---|
COSObjectKey(COSObject object)
PDFObjectKey constructor comment.
|
COSObjectKey(long num,
long gen)
PDFObjectKey constructor comment.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(COSObjectKey other) |
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() |
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 long getGeneration()
public long getNumber()
public void setGeneration(long newGeneration)
newGeneration
- The objects generation number.public void setNumber(long newNumber)
newNumber
- The objects number.public int compareTo(COSObjectKey other)
compareTo
in interface Comparable<COSObjectKey>
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.