public final class ImmutableDirectoryAndExecutableNaming extends DirectoryAndExecutableNaming
DirectoryAndExecutableNaming.
Use the builder to create immutable instances:
ImmutableDirectoryAndExecutableNaming.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableDirectoryAndExecutableNaming.Builder
Builds instances of type
ImmutableDirectoryAndExecutableNaming. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableDirectoryAndExecutableNaming.Builder |
builder()
Creates a builder for
ImmutableDirectoryAndExecutableNaming. |
static ImmutableDirectoryAndExecutableNaming |
copyOf(DirectoryAndExecutableNaming instance)
Creates an immutable copy of a
DirectoryAndExecutableNaming value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableDirectoryAndExecutableNaming that have equal attribute values. |
Directory |
getDirectory() |
TempNaming |
getExecutableNaming() |
int |
hashCode()
Computes a hash code from attributes:
directory, executableNaming. |
String |
toString()
Prints the immutable value
DirectoryAndExecutableNaming with attribute values. |
ImmutableDirectoryAndExecutableNaming |
withDirectory(Directory value)
Copy the current immutable object by setting a value for the
directory attribute. |
ImmutableDirectoryAndExecutableNaming |
withExecutableNaming(TempNaming value)
Copy the current immutable object by setting a value for the
executableNaming attribute. |
ofpublic Directory getDirectory()
getDirectory in class DirectoryAndExecutableNamingdirectory attributepublic TempNaming getExecutableNaming()
getExecutableNaming in class DirectoryAndExecutableNamingexecutableNaming attributepublic final ImmutableDirectoryAndExecutableNaming withDirectory(Directory value)
directory attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for directorythis objectpublic final ImmutableDirectoryAndExecutableNaming withExecutableNaming(TempNaming value)
executableNaming attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for executableNamingthis objectpublic boolean equals(Object another)
ImmutableDirectoryAndExecutableNaming that have equal attribute values.public int hashCode()
directory, executableNaming.public String toString()
DirectoryAndExecutableNaming with attribute values.public static ImmutableDirectoryAndExecutableNaming copyOf(DirectoryAndExecutableNaming instance)
DirectoryAndExecutableNaming 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 ImmutableDirectoryAndExecutableNaming.Builder builder()
ImmutableDirectoryAndExecutableNaming.
ImmutableDirectoryAndExecutableNaming.builder()
.directory(de.flapdoodle.embed.process.io.directories.Directory) // required directory
.executableNaming(de.flapdoodle.embed.process.extract.TempNaming) // required executableNaming
.build();
Copyright © 2022. All rights reserved.