public final class ImmutableInitTempDirectory extends InitTempDirectory
InitTempDirectory.
Use the builder to create immutable instances:
ImmutableInitTempDirectory.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableInitTempDirectory.Builder
Builds instances of type
ImmutableInitTempDirectory. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableInitTempDirectory.Builder |
builder()
Creates a builder for
ImmutableInitTempDirectory. |
static ImmutableInitTempDirectory |
copyOf(InitTempDirectory instance)
Creates an immutable copy of a
InitTempDirectory value. |
protected boolean |
deleteIfEmpty() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableInitTempDirectory that have equal attribute values. |
protected boolean |
forceDelete() |
int |
hashCode()
Computes a hash code from attributes:
tempDirFactory, deleteIfEmpty, forceDelete. |
protected Supplier<TempDir> |
tempDirFactory() |
String |
toString()
Prints the immutable value
InitTempDirectory with attribute values. |
ImmutableInitTempDirectory |
withDeleteIfEmpty(boolean value)
Copy the current immutable object by setting a value for the
deleteIfEmpty attribute. |
ImmutableInitTempDirectory |
withForceDelete(boolean value)
Copy the current immutable object by setting a value for the
forceDelete attribute. |
ImmutableInitTempDirectory |
withTempDirFactory(Supplier<TempDir> value)
Copy the current immutable object by setting a value for the
tempDirFactory attribute. |
destination, result, sources, transitionLabel, with, withPlatformTemp, withPlatformTempRandomSubDirprotected Supplier<TempDir> tempDirFactory()
tempDirFactory in class InitTempDirectorytempDirFactory attributeprotected boolean deleteIfEmpty()
deleteIfEmpty in class InitTempDirectorydeleteIfEmpty attributeprotected boolean forceDelete()
forceDelete in class InitTempDirectoryforceDelete attributepublic final ImmutableInitTempDirectory withTempDirFactory(Supplier<TempDir> value)
tempDirFactory attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for tempDirFactorythis objectpublic final ImmutableInitTempDirectory withDeleteIfEmpty(boolean value)
deleteIfEmpty attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for deleteIfEmptythis objectpublic final ImmutableInitTempDirectory withForceDelete(boolean value)
forceDelete attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for forceDeletethis objectpublic boolean equals(Object another)
ImmutableInitTempDirectory that have equal attribute values.public int hashCode()
tempDirFactory, deleteIfEmpty, forceDelete.public String toString()
InitTempDirectory with attribute values.public static ImmutableInitTempDirectory copyOf(InitTempDirectory instance)
InitTempDirectory value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableInitTempDirectory.Builder builder()
ImmutableInitTempDirectory.
ImmutableInitTempDirectory.builder()
.tempDirFactory(function.Supplier<de.flapdoodle.embed.process.io.directories.TempDir>) // optional tempDirFactory
.deleteIfEmpty(boolean) // optional deleteIfEmpty
.forceDelete(boolean) // optional forceDelete
.build();
Copyright © 2026. All rights reserved.