Class FileContentInfo.FileContentInfoBuilder<C extends FileContentInfo,B extends FileContentInfo.FileContentInfoBuilder<C,B>>
java.lang.Object
io.github.astrapi69.file.create.model.FileInfo.FileInfoBuilder<C,B>
io.github.astrapi69.file.create.model.FileContentInfo.FileContentInfoBuilder<C,B>
- Type Parameters:
C
- the type of `FileContentInfo` to buildB
- the type of builder for `FileContentInfo`
- Enclosing class:
- FileContentInfo
public abstract static class FileContentInfo.FileContentInfoBuilder<C extends FileContentInfo,B extends FileContentInfo.FileContentInfoBuilder<C,B>>
extends FileInfo.FileInfoBuilder<C,B>
The builder class for constructing `FileContentInfo` objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract C
build()
Builds the `FileContentInfo` object.Sets the checksum of the file content.content
(byte[] content) Sets the binary content of the file.protected abstract B
self()
Returns this builder instance.toString()
Returns a string representation of the builder.Methods inherited from class io.github.astrapi69.file.create.model.FileInfo.FileInfoBuilder
$fillValuesFrom, directory, name, path
-
Constructor Details
-
FileContentInfoBuilder
public FileContentInfoBuilder()
-
-
Method Details
-
checksum
Sets the checksum of the file content.- Parameters:
checksum
- the checksum to set- Returns:
- this builder instance
-
content
Sets the binary content of the file.- Parameters:
content
- the binary content to set- Returns:
- this builder instance
-
self
Returns this builder instance.- Specified by:
self
in classFileInfo.FileInfoBuilder<C extends FileContentInfo,
B extends FileContentInfo.FileContentInfoBuilder<C, B>> - Returns:
- this builder instance
-
build
Builds the `FileContentInfo` object.- Specified by:
build
in classFileInfo.FileInfoBuilder<C extends FileContentInfo,
B extends FileContentInfo.FileContentInfoBuilder<C, B>> - Returns:
- the constructed `FileContentInfo` object
-
toString
Returns a string representation of the builder.- Overrides:
toString
in classFileInfo.FileInfoBuilder<C extends FileContentInfo,
B extends FileContentInfo.FileContentInfoBuilder<C, B>> - Returns:
- a string representation of the builder
-