Class MultiPackIndex.PackOffset

java.lang.Object
org.eclipse.jgit.internal.storage.midx.MultiPackIndex.PackOffset
Enclosing interface:
MultiPackIndex

public static class MultiPackIndex.PackOffset extends Object
(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 Details

    • PackOffset

      public PackOffset()
  • Method Details

    • create

      public static MultiPackIndex.PackOffset create(int packId, long offset)
      Return a new PackOffset with the defined data.

      This is for tests, as regular code reuses the instance

      Parameters:
      packId - a pack id
      offset - an offset
      Returns:
      a new PackOffset instance with this data
    • setValues

      protected MultiPackIndex.PackOffset setValues(int packId, long offset)
    • getPackId

      public int getPackId()
    • getOffset

      public long getOffset()
    • copy