public static class RepositoryObject.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
RepositoryObject |
build() |
RepositoryObject.Builder |
copy(RepositoryObject model) |
RepositoryObject.Builder |
isBinary(Boolean isBinary)
Flag to determine if the object contains binary file content or not.
|
RepositoryObject.Builder |
sha(String sha)
SHA-1 hash of git object.
|
RepositoryObject.Builder |
sizeInBytes(Long sizeInBytes)
Size in bytes.
|
RepositoryObject.Builder |
type(RepositoryObject.Type type)
The type of git object.
|
public RepositoryObject.Builder type(RepositoryObject.Type type)
The type of git object.
type
- the value to setpublic RepositoryObject.Builder sizeInBytes(Long sizeInBytes)
Size in bytes.
sizeInBytes
- the value to setpublic RepositoryObject.Builder sha(String sha)
SHA-1 hash of git object.
sha
- the value to setpublic RepositoryObject.Builder isBinary(Boolean isBinary)
Flag to determine if the object contains binary file content or not.
isBinary
- the value to setpublic RepositoryObject build()
public RepositoryObject.Builder copy(RepositoryObject model)
Copyright © 2016–2024. All rights reserved.