| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| private static final int | |
| private final long | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | COSObjectKey(long
The object number. num, int The object generation number. gen, int The index within a compressed object stream index)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(COSObjectKey
the object to be compared. other)Implements java. Compares this object with the specified object for order. |
| public static final long | Returns: the internal hash for the given valuesthe object number num, int the generation number gen)Calculate the internal hash value for the given object number and generation number. |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public long | Returns: the internal hash valueReturn the internal hash value which is based on the number and the generation. |
| public long | |
| public int | Returns: the index within a compressed object stream if applicable otherwise -1The index within a compressed object stream. |
| public int | |
| public String |
| GENERATION_MASK | back to summary |
|---|---|
| private static final long GENERATION_MASK | |
| NUMBER_OFFSET | back to summary |
|---|---|
| private static final int NUMBER_OFFSET | |
| numberAndGeneration | back to summary |
|---|---|
| private final long numberAndGeneration | |
| streamIndex | back to summary |
|---|---|
| private final int streamIndex | |
| COSObjectKey | back to summary |
|---|---|
| public COSObjectKey(long num, int gen) Constructor.
| |
| COSObjectKey | back to summary |
|---|---|
| public COSObjectKey(long num, int gen, int index) Constructor.
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(COSObjectKey other) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| computeInternalHash | back to summary |
|---|---|
| public static final long computeInternalHash(long num, int gen) Calculate the internal hash value for the given object number and generation number.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getGeneration | back to summary |
|---|---|
| public int getGeneration() This will get the object generation number.
| |
| getInternalHash | back to summary |
|---|---|
| public long getInternalHash() Return the internal hash value which is based on the number and the generation.
| |
| getNumber | back to summary |
|---|---|
| public long getNumber() This will get the object number.
| |
| getStreamIndex | back to summary |
|---|---|
| public int getStreamIndex() The index within a compressed object stream.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |