public final class ImmutableStaticArtifactStore extends StaticArtifactStore
StaticArtifactStore.
Use the builder to create immutable instances:
ImmutableStaticArtifactStore.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableStaticArtifactStore.Builder
Builds instances of type
ImmutableStaticArtifactStore. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableStaticArtifactStore.Builder |
builder()
Creates a builder for
ImmutableStaticArtifactStore. |
static ImmutableStaticArtifactStore |
copyOf(StaticArtifactStore instance)
Creates an immutable copy of a
StaticArtifactStore value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableStaticArtifactStore that have equal attribute values. |
protected Map<Distribution,ExtractedFileSet> |
fileSet() |
int |
hashCode()
Computes a hash code from attributes:
fileSet. |
String |
toString()
Prints the immutable value
StaticArtifactStore with attribute values. |
ImmutableStaticArtifactStore |
withFileSet(Map<? extends Distribution,? extends ExtractedFileSet> entries)
Copy the current immutable object by replacing the
fileSet map with the specified map. |
extractFileSet, removeFileSetprotected Map<Distribution,ExtractedFileSet> fileSet()
fileSet in class StaticArtifactStorefileSet attributepublic final ImmutableStaticArtifactStore withFileSet(Map<? extends Distribution,? extends ExtractedFileSet> entries)
fileSet map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.entries - The entries to be added to the fileSet mapthis objectpublic boolean equals(Object another)
ImmutableStaticArtifactStore that have equal attribute values.public int hashCode()
fileSet.public String toString()
StaticArtifactStore with attribute values.public static ImmutableStaticArtifactStore copyOf(StaticArtifactStore instance)
StaticArtifactStore 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 ImmutableStaticArtifactStore.Builder builder()
ImmutableStaticArtifactStore.
ImmutableStaticArtifactStore.builder()
.putFileSet|putAllFileSet(de.flapdoodle.embed.process.distribution.Distribution => de.flapdoodle.embed.process.extract.ExtractedFileSet) // fileSet mappings
.build();
Copyright © 2022. All rights reserved.