public static final class ImmutableVariableNames.Builder extends Object
ImmutableVariableNames.
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 |
|---|---|
ImmutableVariableNames.Builder |
addAllMap(Iterable<? extends de.flapdoodle.types.Pair<Integer,String>> elements)
Adds elements to
map list. |
ImmutableVariableNames.Builder |
addMap(de.flapdoodle.types.Pair<Integer,String>... elements)
Adds elements to
map list. |
ImmutableVariableNames.Builder |
addMap(de.flapdoodle.types.Pair<Integer,String> element)
Adds one element to
map list. |
ImmutableVariableNames |
build()
Builds a new
ImmutableVariableNames. |
ImmutableVariableNames.Builder |
from(VariableNames instance)
Fill a builder with attribute values from the provided
VariableNames instance. |
ImmutableVariableNames.Builder |
map(Iterable<? extends de.flapdoodle.types.Pair<Integer,String>> elements)
Sets or replaces all elements for
map list. |
public final ImmutableVariableNames.Builder from(VariableNames instance)
VariableNames 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 ImmutableVariableNames.Builder addMap(de.flapdoodle.types.Pair<Integer,String> element)
map list.element - A map elementthis builder for use in a chained invocation@SafeVarargs public final ImmutableVariableNames.Builder addMap(de.flapdoodle.types.Pair<Integer,String>... elements)
map list.elements - An array of map elementsthis builder for use in a chained invocationpublic final ImmutableVariableNames.Builder map(Iterable<? extends de.flapdoodle.types.Pair<Integer,String>> elements)
map list.elements - An iterable of map elementsthis builder for use in a chained invocationpublic final ImmutableVariableNames.Builder addAllMap(Iterable<? extends de.flapdoodle.types.Pair<Integer,String>> elements)
map list.elements - An iterable of map elementsthis builder for use in a chained invocationpublic ImmutableVariableNames build()
ImmutableVariableNames.IllegalStateException - if any required attributes are missingCopyright © 2024. All rights reserved.