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