Class BitmapCommit.Builder
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.pack.BitmapCommit.Builder
-
- Enclosing class:
- BitmapCommit
public static class BitmapCommit.Builder extends java.lang.ObjectBuilder of BitmapCommit.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanaddToIndexprivate intflagsprivate AnyObjectIdobjectIdprivate booleanreuseWalker
-
Constructor Summary
Constructors Modifier Constructor Description privateBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitmapCommitbuild()Builds BitmapCommit from the builder.BitmapCommit.BuildersetAddToIndex(boolean addToIndex)Set whether whether the bitmap of the BitmapCommit should be added to PackBitmapIndexBuilder when building bitmap index file.BitmapCommit.BuildersetFlags(int flags)Set flags of the builder.BitmapCommit.BuildersetId(AnyObjectId objectId)Set objectId of the builder.BitmapCommit.BuildersetReuseWalker(boolean reuseWalker)Set reuseWalker of the builder.
-
-
-
Field Detail
-
objectId
private AnyObjectId objectId
-
reuseWalker
private boolean reuseWalker
-
flags
private int flags
-
addToIndex
private boolean addToIndex
-
-
Method Detail
-
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.
-
-