public static final class ImmutableInitTempDirectory.Builder extends Object
ImmutableInitTempDirectory.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutableInitTempDirectory |
build()
Builds a new
ImmutableInitTempDirectory. |
ImmutableInitTempDirectory.Builder |
deleteIfEmpty(boolean deleteIfEmpty)
Initializes the value for the
deleteIfEmpty attribute. |
ImmutableInitTempDirectory.Builder |
forceDelete(boolean forceDelete)
Initializes the value for the
forceDelete attribute. |
ImmutableInitTempDirectory.Builder |
from(InitTempDirectory instance)
Fill a builder with attribute values from the provided
InitTempDirectory instance. |
ImmutableInitTempDirectory.Builder |
tempDirFactory(Supplier<TempDir> tempDirFactory)
Initializes the value for the
tempDirFactory attribute. |
public final ImmutableInitTempDirectory.Builder from(InitTempDirectory instance)
InitTempDirectory instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableInitTempDirectory.Builder tempDirFactory(Supplier<TempDir> tempDirFactory)
tempDirFactory attribute.
If not set, this attribute will have a default value as returned by the initializer of tempDirFactory.
tempDirFactory - The value for tempDirFactorythis builder for use in a chained invocationpublic final ImmutableInitTempDirectory.Builder deleteIfEmpty(boolean deleteIfEmpty)
deleteIfEmpty attribute.
If not set, this attribute will have a default value as returned by the initializer of deleteIfEmpty.
deleteIfEmpty - The value for deleteIfEmptythis builder for use in a chained invocationpublic final ImmutableInitTempDirectory.Builder forceDelete(boolean forceDelete)
forceDelete attribute.
If not set, this attribute will have a default value as returned by the initializer of forceDelete.
forceDelete - The value for forceDeletethis builder for use in a chained invocationpublic ImmutableInitTempDirectory build()
ImmutableInitTempDirectory.IllegalStateException - if any required attributes are missingCopyright © 2026. All rights reserved.