- java.lang.Object
-
- org.eclipse.jgit.transport.ReceivedPackStatistics.Builder
-
- Enclosing class:
- ReceivedPackStatistics
public static class ReceivedPackStatistics.Builder extends Object
A builder forReceivedPackStatistics.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReceivedPackStatistics.BuilderaddDeltaObject(int type)Increment a delta object count.ReceivedPackStatistics.BuilderaddOffsetDelta()ReceivedPackStatistics.BuilderaddRefDelta()ReceivedPackStatistics.BuilderaddWholeObject(int type)Increment a whole object count.ReceivedPackStatistics.BuildersetNumBytesRead(long numBytesRead)
-
-
-
Method Detail
-
setNumBytesRead
public ReceivedPackStatistics.Builder setNumBytesRead(long numBytesRead)
- Parameters:
numBytesRead- number of bytes read from the input stream- Returns:
- this
-
addWholeObject
public ReceivedPackStatistics.Builder addWholeObject(int type)
Increment a whole object count.- Parameters:
type- OBJ_COMMIT, OBJ_TREE, OBJ_BLOB, or OBJ_TAG- Returns:
- this
-
addOffsetDelta
public ReceivedPackStatistics.Builder addOffsetDelta()
- Returns:
- this
-
addRefDelta
public ReceivedPackStatistics.Builder addRefDelta()
- Returns:
- this
-
addDeltaObject
public ReceivedPackStatistics.Builder addDeltaObject(int type)
Increment a delta object count.- Parameters:
type- OBJ_COMMIT, OBJ_TREE, OBJ_BLOB, or OBJ_TAG- Returns:
- this
-
-