public static final class ImmutableOsReleaseFile.Builder extends Object
ImmutableOsReleaseFile.
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 |
|---|---|
ImmutableOsReleaseFile.Builder |
attributes(Map<String,? extends String> entries)
Sets or replaces all mappings from the specified map as entries for the
attributes map. |
ImmutableOsReleaseFile |
build()
Builds a new
ImmutableOsReleaseFile. |
ImmutableOsReleaseFile.Builder |
from(OsReleaseFile instance)
Fill a builder with attribute values from the provided
OsReleaseFile instance. |
ImmutableOsReleaseFile.Builder |
putAllAttributes(Map<String,? extends String> entries)
Put all mappings from the specified map as entries to
attributes map. |
ImmutableOsReleaseFile.Builder |
putAttributes(Map.Entry<String,? extends String> entry)
Put one entry to the
attributes map. |
ImmutableOsReleaseFile.Builder |
putAttributes(String key,
String value)
Put one entry to the
attributes map. |
public final ImmutableOsReleaseFile.Builder from(OsReleaseFile instance)
OsReleaseFile 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 ImmutableOsReleaseFile.Builder putAttributes(String key, String value)
attributes map.key - The key in the attributes mapvalue - The associated value in the attributes mapthis builder for use in a chained invocationpublic final ImmutableOsReleaseFile.Builder putAttributes(Map.Entry<String,? extends String> entry)
attributes map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final ImmutableOsReleaseFile.Builder attributes(Map<String,? extends String> entries)
attributes map. Nulls are not permittedentries - The entries that will be added to the attributes mapthis builder for use in a chained invocationpublic final ImmutableOsReleaseFile.Builder putAllAttributes(Map<String,? extends String> entries)
attributes map. Nulls are not permittedentries - The entries that will be added to the attributes mapthis builder for use in a chained invocationpublic ImmutableOsReleaseFile build()
ImmutableOsReleaseFile.IllegalStateException - if any required attributes are missingCopyright © 2021. All rights reserved.