public static final class ImmutableStaticArtifactStore.Builder extends Object
ImmutableStaticArtifactStore.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutableStaticArtifactStore |
build()
Builds a new
ImmutableStaticArtifactStore. |
ImmutableStaticArtifactStore.Builder |
fileSet(Map<? extends Distribution,? extends ExtractedFileSet> entries)
Sets or replaces all mappings from the specified map as entries for the
fileSet map. |
ImmutableStaticArtifactStore.Builder |
from(StaticArtifactStore instance)
Fill a builder with attribute values from the provided
StaticArtifactStore instance. |
ImmutableStaticArtifactStore.Builder |
putAllFileSet(Map<? extends Distribution,? extends ExtractedFileSet> entries)
Put all mappings from the specified map as entries to
fileSet map. |
ImmutableStaticArtifactStore.Builder |
putFileSet(Distribution key,
ExtractedFileSet value)
Put one entry to the
fileSet map. |
ImmutableStaticArtifactStore.Builder |
putFileSet(Map.Entry<? extends Distribution,? extends ExtractedFileSet> entry)
Put one entry to the
fileSet map. |
public final ImmutableStaticArtifactStore.Builder from(StaticArtifactStore instance)
StaticArtifactStore instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableStaticArtifactStore.Builder putFileSet(Distribution key, ExtractedFileSet value)
fileSet map.key - The key in the fileSet mapvalue - The associated value in the fileSet mapthis builder for use in a chained invocationpublic final ImmutableStaticArtifactStore.Builder putFileSet(Map.Entry<? extends Distribution,? extends ExtractedFileSet> entry)
fileSet map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final ImmutableStaticArtifactStore.Builder fileSet(Map<? extends Distribution,? extends ExtractedFileSet> entries)
fileSet map. Nulls are not permittedentries - The entries that will be added to the fileSet mapthis builder for use in a chained invocationpublic final ImmutableStaticArtifactStore.Builder putAllFileSet(Map<? extends Distribution,? extends ExtractedFileSet> entries)
fileSet map. Nulls are not permittedentries - The entries that will be added to the fileSet mapthis builder for use in a chained invocationpublic ImmutableStaticArtifactStore build()
ImmutableStaticArtifactStore.IllegalStateException - if any required attributes are missingCopyright © 2022. All rights reserved.