Class MidxPackList.Builder

java.lang.Object
org.eclipse.jgit.internal.storage.dfs.MidxPackList.Builder
Enclosing class:
MidxPackList

public static final class MidxPackList.Builder extends Object
Builder to mutate the list of packs. It removes midxs from the list as packs are removed, to maintain a valid view of the packlist
  • Method Details

    • add

      public MidxPackList.Builder add(DfsPackFile toAdd)
      Add pack to the packlist
      Parameters:
      toAdd - pack to add
      Returns:
      this builder
    • delete

      public MidxPackList.Builder delete(DfsPackFile toDelete)
      Delete the pack from the pack list Including any midx covering it directly or indirectly
      Parameters:
      toDelete - a pack to remove from the list
      Returns:
      this builder
    • build

      public MidxPackList build()
      Create a new pack list with the modifications
      Returns:
      a new packlist with the changes applied