java.lang.Object
org.eclipse.jgit.transport.ReceivedPackStatistics.Builder
- Enclosing class:
- ReceivedPackStatistics
A builder for
ReceivedPackStatistics
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDeltaObject
(int type) Increment a delta object count.Increment offset deltaIncrement ref deltaaddWholeObject
(int type) Increment a whole object count.setNumBytesRead
(long numBytesRead) Set number of bytes read from the input stream
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setNumBytesRead
Set number of bytes read from the input stream- Parameters:
numBytesRead
- number of bytes read from the input stream- Returns:
- this
-
addWholeObject
Increment a whole object count.- Parameters:
type
- OBJ_COMMIT, OBJ_TREE, OBJ_BLOB, or OBJ_TAG- Returns:
- this
-
addOffsetDelta
Increment offset delta- Returns:
- this
-
addRefDelta
Increment ref delta- Returns:
- this
-
addDeltaObject
Increment a delta object count.- Parameters:
type
- OBJ_COMMIT, OBJ_TREE, OBJ_BLOB, or OBJ_TAG- Returns:
- this
-