java.lang.Object
org.eclipse.jgit.internal.storage.file.PackIndex.MutableEntry
- Enclosing interface:
- PackIndex
Represent mutable entry of pack index consisting of object id and offset
in pack (both mutable).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClone the entryintSimilar toComparable.compareTo(Object), using only the object id in the entry.voidcopyOidTo(MutableObjectId dest) Copy the current ObjectId to destlongReturns offset for this index object entryname()Get hex string representation of the entry's object idCreate a copy of the object id
-
Constructor Details
-
MutableEntry
public MutableEntry()
-
-
Method Details
-
getOffset
public long getOffset()Returns offset for this index object entry- Returns:
- offset of this object in a pack file
-
name
Get hex string representation of the entry's object id- Returns:
- hex string describing the object id of this entry.
-
toObjectId
Create a copy of the object id- Returns:
- a copy of the object id.
-
cloneEntry
Clone the entry- Returns:
- a complete copy of this entry, that won't modify
-
compareBySha1To
Similar toComparable.compareTo(Object), using only the object id in the entry.- Parameters:
other- Another mutable entry (probably from another index)- Returns:
- a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
-
copyOidTo
Copy the current ObjectId to destLike
toObjectId(), but reusing the destination instead of creating a new ObjectId instance.- Parameters:
dest- destination for the object id
-