Class PackIndex.MutableEntry
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.file.PackIndex.MutableEntry
-
- Enclosing class:
- PackIndex
public static class PackIndex.MutableEntry extends java.lang.Object
Represent mutable entry of pack index consisting of object id and offset in pack (both mutable).
-
-
Field Summary
Fields Modifier and Type Field Description (package private) MutableObjectId
idBuffer
(package private) long
offset
-
Constructor Summary
Constructors Constructor Description MutableEntry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PackIndex.MutableEntry
cloneEntry()
(package private) void
ensureId()
long
getOffset()
Returns offset for this index object entryjava.lang.String
name()
ObjectId
toObjectId()
-
-
-
Field Detail
-
idBuffer
final MutableObjectId idBuffer
-
offset
long offset
-
-
Method Detail
-
getOffset
public long getOffset()
Returns offset for this index object entry- Returns:
- offset of this object in a pack file
-
name
public java.lang.String name()
- Returns:
- hex string describing the object id of this entry.
-
toObjectId
public ObjectId toObjectId()
- Returns:
- a copy of the object id.
-
cloneEntry
public PackIndex.MutableEntry cloneEntry()
- Returns:
- a complete copy of this entry, that won't modify
-
ensureId
void ensureId()
-
-