public static final class FileTypes.Info.Builder
extends java.lang.Object
FileTypes.Info
.Constructor and Description |
---|
Builder(java.lang.String name,
long size,
boolean cached,
java.lang.String version)
Constructor with parameters for the required properties of
FileTypes.Info . |
Modifier and Type | Method and Description |
---|---|
FileTypes.Info |
build() |
FileTypes.Info.Builder |
setChecksumInfo(FileTypes.ChecksumInfo checksumInfo)
A checksum for validating the content of the file.
|
public Builder(java.lang.String name, long size, boolean cached, java.lang.String version)
FileTypes.Info
.public FileTypes.Info.Builder setChecksumInfo(FileTypes.ChecksumInfo checksumInfo)
This value can be used to verify that a transfer was completed without errors.
A checksum cannot always be calculated, and the value will benull
if
the file does not have content.checksumInfo
- New value for the property.public FileTypes.Info build()