public final class ImmutableExtractedFileSet extends ExtractedFileSet
ExtractedFileSet.
Use the builder to create immutable instances:
ImmutableExtractedFileSet.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableExtractedFileSet.Builder
Builds instances of type
ImmutableExtractedFileSet. |
| Modifier and Type | Method and Description |
|---|---|
Path |
baseDir() |
static ImmutableExtractedFileSet.Builder |
builder(Path baseDir)
Creates a builder for
ImmutableExtractedFileSet. |
static ImmutableExtractedFileSet |
copyOf(ExtractedFileSet instance)
Creates an immutable copy of a
ExtractedFileSet value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableExtractedFileSet that have equal attribute values. |
Path |
executable() |
int |
hashCode()
Computes a hash code from attributes:
baseDir, executable, libraryFiles. |
Set<Path> |
libraryFiles() |
String |
toString()
Prints the immutable value
ExtractedFileSet with attribute values. |
ImmutableExtractedFileSet |
withBaseDir(Path value)
Copy the current immutable object by setting a value for the
baseDir attribute. |
ImmutableExtractedFileSet |
withExecutable(Path value)
Copy the current immutable object by setting a value for the
executable attribute. |
ImmutableExtractedFileSet |
withLibraryFiles(Iterable<? extends Path> elements)
Copy the current immutable object with elements that replace the content of
libraryFiles. |
ImmutableExtractedFileSet |
withLibraryFiles(Path... elements)
Copy the current immutable object with elements that replace the content of
libraryFiles. |
public Path baseDir()
baseDir in class ExtractedFileSetbaseDir attributepublic Path executable()
executable in class ExtractedFileSetexecutable attributepublic Set<Path> libraryFiles()
libraryFiles in class ExtractedFileSetlibraryFiles attributepublic final ImmutableExtractedFileSet withBaseDir(Path value)
baseDir attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for baseDirthis objectpublic final ImmutableExtractedFileSet withExecutable(Path value)
executable attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for executablethis objectpublic final ImmutableExtractedFileSet withLibraryFiles(Path... elements)
libraryFiles.elements - The elements to setthis objectpublic final ImmutableExtractedFileSet withLibraryFiles(Iterable<? extends Path> elements)
libraryFiles.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of libraryFiles elements to setthis objectpublic boolean equals(Object another)
ImmutableExtractedFileSet that have equal attribute values.public int hashCode()
baseDir, executable, libraryFiles.public String toString()
ExtractedFileSet with attribute values.public static ImmutableExtractedFileSet copyOf(ExtractedFileSet instance)
ExtractedFileSet 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 ImmutableExtractedFileSet.Builder builder(Path baseDir)
ImmutableExtractedFileSet.
ImmutableExtractedFileSet.builder()
.baseDir(java.nio.file.Path) // required baseDir
.executable(java.nio.file.Path) // required executable
.addLibraryFiles|addAllLibraryFiles(java.nio.file.Path) // libraryFiles elements
.build();
baseDir - baseDir parameterCopyright © 2024. All rights reserved.