Class BitmapCommit.Builder

java.lang.Object
org.eclipse.jgit.internal.storage.pack.BitmapCommit.Builder
Enclosing class:
BitmapCommit

public static class BitmapCommit.Builder extends Object
Builder of BitmapCommit.
  • Field Details

    • objectId

      private AnyObjectId objectId
    • reuseWalker

      private boolean reuseWalker
    • flags

      private int flags
    • addToIndex

      private boolean addToIndex
  • Constructor Details

    • Builder

      private Builder()
  • Method Details

    • setId

      public BitmapCommit.Builder setId(AnyObjectId objectId)
      Set objectId of the builder.
      Parameters:
      objectId - the object id of the BitmapCommit
      Returns:
      the builder itself
    • setReuseWalker

      public BitmapCommit.Builder setReuseWalker(boolean reuseWalker)
      Set reuseWalker of the builder.
      Parameters:
      reuseWalker - whether the BitmapCommit should reuse bitmap walker when walking objects
      Returns:
      the builder itself
    • setFlags

      public BitmapCommit.Builder setFlags(int flags)
      Set flags of the builder.
      Parameters:
      flags - the flags of the BitmapCommit
      Returns:
      the builder itself
    • setAddToIndex

      public BitmapCommit.Builder setAddToIndex(boolean addToIndex)
      Set whether whether the bitmap of the BitmapCommit should be added to PackBitmapIndexBuilder when building bitmap index file.
      Parameters:
      addToIndex - whether the bitmap of the BitmapCommit should be added to PackBitmapIndexBuilder when building bitmap index file
      Returns:
      the builder itself
    • build

      public BitmapCommit build()
      Builds BitmapCommit from the builder.
      Returns:
      the new BitmapCommit.