Package io.dialob.program.expr.arith
Class ImmutableLocalizedLabelOperator.Builder
- java.lang.Object
-
- io.dialob.program.expr.arith.ImmutableLocalizedLabelOperator.Builder
-
- Enclosing class:
- ImmutableLocalizedLabelOperator
@NotThreadSafe public static final class ImmutableLocalizedLabelOperator.Builder extends Object
Builds instances of typeImmutableLocalizedLabelOperator. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableLocalizedLabelOperatorbuild()Builds a newImmutableLocalizedLabelOperator.ImmutableLocalizedLabelOperator.Builderfrom(LocalizedLabelOperator instance)Fill a builder with attribute values from the providedLocalizedLabelOperatorinstance.ImmutableLocalizedLabelOperator.BuilderputAllValue(Map<String,? extends Expression> entries)Put all mappings from the specified map as entries tovaluemap.ImmutableLocalizedLabelOperator.BuilderputValue(String key, Expression value)Put one entry to thevaluemap.ImmutableLocalizedLabelOperator.BuilderputValue(Map.Entry<String,? extends Expression> entry)Put one entry to thevaluemap.ImmutableLocalizedLabelOperator.Buildervalue(Map<String,? extends Expression> entries)Sets or replaces all mappings from the specified map as entries for thevaluemap.
-
-
-
Method Detail
-
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
public ImmutableLocalizedLabelOperator build()
Builds a newImmutableLocalizedLabelOperator.- Returns:
- An immutable instance of LocalizedLabelOperator
- Throws:
IllegalStateException- if any required attributes are missing
-
-