Module org.eclipse.jgit
Class MultiPackIndex.PackOffset
java.lang.Object
org.eclipse.jgit.internal.storage.midx.MultiPackIndex.PackOffset
- All Implemented Interfaces:
Comparable<MultiPackIndex.PackOffset>
- Enclosing interface:
- MultiPackIndex
public static class MultiPackIndex.PackOffset
extends Object
implements Comparable<MultiPackIndex.PackOffset>
(packId, offset) coordinates of an object
Mutable object to avoid creating many instances while looking for objects in the pack. Use #copy() to get a new instance with the data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(MultiPackIndex.PackOffset packOffset) copy()static MultiPackIndex.PackOffsetcreate(int packId, long offset) Return a new PackOffset with the defined data.longintsetValues(int packId, long offset) toString()
-
Constructor Details
-
PackOffset
public PackOffset()
-
-
Method Details
-
create
Return a new PackOffset with the defined data.This is for tests, as regular code reuses the instance
- Parameters:
packId- a pack idoffset- an offset- Returns:
- a new PackOffset instance with this data
-
setValues
-
getPackId
public int getPackId() -
getOffset
public long getOffset() -
copy
-
compareTo
- Specified by:
compareToin interfaceComparable<MultiPackIndex.PackOffset>
-
toString
-