public static final class ImmutableLsbReleaseFile.Builder extends Object
ImmutableLsbReleaseFile.
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 |
|---|---|
ImmutableLsbReleaseFile.Builder |
attributes(Map<String,? extends String> entries)
Sets or replaces all mappings from the specified map as entries for the
attributes map. |
ImmutableLsbReleaseFile |
build()
Builds a new
ImmutableLsbReleaseFile. |
ImmutableLsbReleaseFile.Builder |
from(LsbReleaseFile instance)
Fill a builder with attribute values from the provided
LsbReleaseFile instance. |
ImmutableLsbReleaseFile.Builder |
putAllAttributes(Map<String,? extends String> entries)
Put all mappings from the specified map as entries to
attributes map. |
ImmutableLsbReleaseFile.Builder |
putAttributes(Map.Entry<String,? extends String> entry)
Put one entry to the
attributes map. |
ImmutableLsbReleaseFile.Builder |
putAttributes(String key,
String value)
Put one entry to the
attributes map. |
public final ImmutableLsbReleaseFile.Builder from(LsbReleaseFile instance)
LsbReleaseFile 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 ImmutableLsbReleaseFile.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 ImmutableLsbReleaseFile.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 ImmutableLsbReleaseFile.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 ImmutableLsbReleaseFile.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 ImmutableLsbReleaseFile build()
ImmutableLsbReleaseFile.IllegalStateException - if any required attributes are missingCopyright © 2024. All rights reserved.