public final class COSObjectKey extends Object implements Comparable<COSObjectKey>
| Constructor and Description |
|---|
COSObjectKey(long num,
int gen)
Constructor.
|
COSObjectKey(long num,
int gen,
int index)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(COSObjectKey other) |
static long |
computeInternalHash(long num,
int gen)
Calculate the internal hash value for the given object number and generation number.
|
boolean |
equals(Object obj) |
int |
getGeneration()
This will get the object generation number.
|
long |
getNumber()
This will get the object number.
|
int |
getStreamIndex()
The index within a compressed object stream.
|
int |
hashCode() |
String |
toString() |
public COSObjectKey(long num,
int gen)
num - The object number.gen - The object generation number.public COSObjectKey(long num,
int gen,
int index)
num - The object number.gen - The object generation number.index - The index within a compressed object streampublic static final long computeInternalHash(long num,
int gen)
num - the object numbergen - the generation numberpublic int getGeneration()
public long getNumber()
public int getStreamIndex()
public int compareTo(COSObjectKey other)
compareTo in interface Comparable<COSObjectKey>Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.