Class MultiPackIndex.MutableEntry

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

public static class MultiPackIndex.MutableEntry extends Object
Entry from the midx with object id, pack id, offset (in pack)

Mutable so the iterator can reuse the instance for performance.

  • Field Details

  • Constructor Details

    • MutableEntry

      public MutableEntry()
  • Method Details

    • fill

      Copy data from other into this instance, adding the shift to the packId
      Parameters:
      other - another entry
      shift - amount to add to the packid
      Returns:
      this instance
    • getObjectId

      public MutableObjectId getObjectId()
    • getPackId

      public int getPackId()
    • getOffset

      public long getOffset()
    • clear

      public void clear()
    • toString

      public String toString()
      Overrides:
      toString in class Object