Class BitmapCommit.Builder
java.lang.Object
org.eclipse.jgit.internal.storage.pack.BitmapCommit.Builder
- Enclosing class:
- BitmapCommit
Builder of BitmapCommit.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds BitmapCommit from the builder.setAddToIndex
(boolean addToIndex) Set whether whether the bitmap of the BitmapCommit should be added to PackBitmapIndexBuilder when building bitmap index file.setFlags
(int flags) Set flags of the builder.setId
(AnyObjectId objectId) Set objectId of the builder.setReuseWalker
(boolean reuseWalker) Set reuseWalker of the builder.
-
Field Details
-
objectId
-
reuseWalker
private boolean reuseWalker -
flags
private int flags -
addToIndex
private boolean addToIndex
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
setId
Set objectId of the builder.- Parameters:
objectId
- the object id of the BitmapCommit- Returns:
- the builder itself
-
setReuseWalker
Set reuseWalker of the builder.- Parameters:
reuseWalker
- whether the BitmapCommit should reuse bitmap walker when walking objects- Returns:
- the builder itself
-
setFlags
Set flags of the builder.- Parameters:
flags
- the flags of the BitmapCommit- Returns:
- the builder itself
-
setAddToIndex
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
Builds BitmapCommit from the builder.- Returns:
- the new BitmapCommit.
-