| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableTempDir.Builder
Builds instances of type
ImmutableTempDir. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableTempDir.Builder |
builder()
Creates a builder for
ImmutableTempDir. |
static ImmutableTempDir |
copyOf(TempDir instance)
Creates an immutable copy of a
TempDir value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableTempDir that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
value. |
static ImmutableTempDir |
of(Path value)
Construct a new immutable
TempDir instance. |
Path |
value() |
ImmutableTempDir |
withValue(Path value)
Copy the current immutable object by setting a value for the
value attribute. |
createDirectory, createDirectoryWith, createFile, platformTempDir, platformTempSubDir, propertyOrPlatformTempDir, propertyOrPlatformTempSubDirpublic Path value()
public final ImmutableTempDir withValue(Path value)
value attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for valuethis objectpublic boolean equals(Object another)
ImmutableTempDir that have equal attribute values.public int hashCode()
value.public static ImmutableTempDir of(Path value)
TempDir instance.value - The value for the value attributepublic static ImmutableTempDir copyOf(TempDir instance)
TempDir 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 ImmutableTempDir.Builder builder()
ImmutableTempDir.
ImmutableTempDir.builder()
.value(java.nio.file.Path) // required value
.build();
Copyright © 2022. All rights reserved.