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