Class ImmutableLocalizedLabelOperator.Builder
java.lang.Object
io.dialob.session.engine.program.expr.arith.ImmutableLocalizedLabelOperator.Builder
- Enclosing class:
ImmutableLocalizedLabelOperator
@Generated(from="LocalizedLabelOperator",
generator="Immutables")
@NotThreadSafe
public static final class ImmutableLocalizedLabelOperator.Builder
extends Object
Builds instances of type
ImmutableLocalizedLabelOperator.
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.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newImmutableLocalizedLabelOperator.from(LocalizedLabelOperator instance) Fill a builder with attribute values from the providedLocalizedLabelOperatorinstance.putAllValue(Map<String, ? extends Expression> entries) Put all mappings from the specified map as entries tovaluemap.putValue(String key, Expression value) Put one entry to thevaluemap.putValue(Map.Entry<String, ? extends Expression> entry) Put one entry to thevaluemap.value(Map<String, ? extends Expression> entries) Sets or replaces all mappings from the specified map as entries for thevaluemap.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableLocalizedLabelOperator.Builder from(LocalizedLabelOperator instance) Fill a builder with attribute values from the providedLocalizedLabelOperatorinstance. 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.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
putValue
@CanIgnoreReturnValue public final ImmutableLocalizedLabelOperator.Builder putValue(String key, Expression value) Put one entry to thevaluemap.- Parameters:
key- The key in the value mapvalue- The associated value in the value map- Returns:
thisbuilder for use in a chained invocation
-
putValue
@CanIgnoreReturnValue public final ImmutableLocalizedLabelOperator.Builder putValue(Map.Entry<String, ? extends Expression> entry) Put one entry to thevaluemap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
value
@CanIgnoreReturnValue public final ImmutableLocalizedLabelOperator.Builder value(Map<String, ? extends Expression> entries) Sets or replaces all mappings from the specified map as entries for thevaluemap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the value map- Returns:
thisbuilder for use in a chained invocation
-
putAllValue
@CanIgnoreReturnValue public final ImmutableLocalizedLabelOperator.Builder putAllValue(Map<String, ? extends Expression> entries) Put all mappings from the specified map as entries tovaluemap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the value map- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableLocalizedLabelOperator.- Returns:
- An immutable instance of LocalizedLabelOperator
- Throws:
IllegalStateException- if any required attributes are missing
-