public static final class FileCache.Inputs.Builder
extends java.lang.Object
FileCache.Inputs.| Constructor and Description |
|---|
Builder(FileCache.Command command)
Creates a
FileCache.Inputs.Builder instance to construct an FileCache.Inputs object. |
Builder(FileCache.Command command,
FileCache.CacheSession session)
Creates a
FileCache.Inputs.Builder instance to construct an FileCache.Inputs object. |
| Modifier and Type | Method and Description |
|---|---|
FileCache.Inputs |
build()
Builds an
Inputs instance. |
FileCache.Inputs.Builder |
putBoolean(java.lang.String name,
boolean value)
Adds an input parameter with a Boolean value.
|
FileCache.Inputs.Builder |
putDirectory(java.lang.String name,
java.io.File directory,
FileCache.DirectoryProperties directoryProperties)
Adds an input parameter to identify a directory using the given properties.
|
FileCache.Inputs.Builder |
putFile(java.lang.String name,
java.io.File file,
FileCache.FileProperties fileProperties)
Adds an input parameter to identify a regular file (not a directory) using the given
properties.
|
FileCache.Inputs.Builder |
putLong(java.lang.String name,
long value)
Adds an input parameter with a Long value.
|
FileCache.Inputs.Builder |
putString(java.lang.String name,
java.lang.String value)
Adds an input parameter with a String value.
|
public Builder(@NonNull
FileCache.Command command)
FileCache.Inputs.Builder instance to construct an FileCache.Inputs object.command - the command that identifies a file creator callback function (which
usually corresponds to a Gradle task)public Builder(@NonNull
FileCache.Command command,
@NonNull
FileCache.CacheSession session)
FileCache.Inputs.Builder instance to construct an FileCache.Inputs object.command - the command that identifies a file creator callback function (which
usually corresponds to a Gradle task)session - The session the newly created Builder will belong to.@NonNull public FileCache.Inputs.Builder putString(@NonNull java.lang.String name, @NonNull java.lang.String value)
java.lang.IllegalStateException - if a parameter with the same name already exists@NonNull public FileCache.Inputs.Builder putBoolean(@NonNull java.lang.String name, boolean value)
java.lang.IllegalStateException - if a parameter with the same name already exists@NonNull public FileCache.Inputs.Builder putLong(@NonNull java.lang.String name, long value)
java.lang.IllegalStateException - if a parameter with the same name already exists@NonNull public FileCache.Inputs.Builder putFile(@NonNull java.lang.String name, @NonNull java.io.File file, @NonNull FileCache.FileProperties fileProperties)
java.lang.IllegalStateException - if a parameter with the same name already exists@NonNull public FileCache.Inputs.Builder putDirectory(@NonNull java.lang.String name, @NonNull java.io.File directory, @NonNull FileCache.DirectoryProperties directoryProperties)
java.lang.IllegalStateException - if a parameter with the same name already exists@NonNull public FileCache.Inputs build()
Inputs instance.java.lang.IllegalStateException - if the inputs are empty