Module org.eclipse.jgit
Class MultiPackIndex.PackOffset
java.lang.Object
org.eclipse.jgit.internal.storage.midx.MultiPackIndex.PackOffset
- Enclosing interface:
- MultiPackIndex
(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 TypeMethodDescriptioncopy()static MultiPackIndex.PackOffsetcreate(int packId, long offset) Return a new PackOffset with the defined data.longintprotected MultiPackIndex.PackOffsetsetValues(int packId, long offset)
-
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
-