Package io.dialob.program.expr.arith
Class ImmutableLocalizedLabelOperator
- java.lang.Object
-
- io.dialob.program.expr.arith.ImmutableLocalizedLabelOperator
-
- All Implemented Interfaces:
LocalizedLabelOperator,Expression,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableLocalizedLabelOperator extends Object implements LocalizedLabelOperator
Immutable implementation ofLocalizedLabelOperator.Use the builder to create immutable instances:
ImmutableLocalizedLabelOperator.builder(). Use the static factory method to create immutable instances:ImmutableLocalizedLabelOperator.of().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableLocalizedLabelOperator.BuilderBuilds instances of typeImmutableLocalizedLabelOperator.
-
Field Summary
-
Fields inherited from interface io.dialob.program.expr.arith.LocalizedLabelOperator
EXPRESSION_PATTERN
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableLocalizedLabelOperator.Builderbuilder()Creates a builder forImmutableLocalizedLabelOperator.static ImmutableLocalizedLabelOperatorcopyOf(LocalizedLabelOperator instance)Creates an immutable copy of aLocalizedLabelOperatorvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableLocalizedLabelOperatorthat have equal attribute values.com.google.common.collect.ImmutableMap<String,Expression>getValue()inthashCode()Computes a hash code from attributes:value.static ImmutableLocalizedLabelOperatorof(Map<String,? extends Expression> value)Construct a new immutableLocalizedLabelOperatorinstance.StringtoString()Prints the immutable valueLocalizedLabelOperatorwith attribute values.ImmutableLocalizedLabelOperatorwithValue(Map<String,? extends Expression> entries)Copy the current immutable object by replacing thevaluemap with the specified map.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.dialob.program.expr.arith.LocalizedLabelOperator
eval, getEvalRequiredConditions, getValueType
-
-
-
-
Method Detail
-
getValue
public com.google.common.collect.ImmutableMap<String,Expression> getValue()
- Specified by:
getValuein interfaceLocalizedLabelOperator- Returns:
- The value of the
valueattribute
-
withValue
public final ImmutableLocalizedLabelOperator withValue(Map<String,? extends Expression> entries)
Copy the current immutable object by replacing thevaluemap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the value map- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableLocalizedLabelOperatorthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:value.
-
toString
public String toString()
Prints the immutable valueLocalizedLabelOperatorwith attribute values.
-
of
public static ImmutableLocalizedLabelOperator of(Map<String,? extends Expression> value)
Construct a new immutableLocalizedLabelOperatorinstance.- Parameters:
value- The value for thevalueattribute- Returns:
- An immutable LocalizedLabelOperator instance
-
copyOf
public static ImmutableLocalizedLabelOperator copyOf(LocalizedLabelOperator instance)
Creates an immutable copy of aLocalizedLabelOperatorvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable LocalizedLabelOperator instance
-
builder
public static ImmutableLocalizedLabelOperator.Builder builder()
Creates a builder forImmutableLocalizedLabelOperator.ImmutableLocalizedLabelOperator.builder() .putValue|putAllValue(String => io.dialob.program.model.Expression) //valuemappings .build();- Returns:
- A new ImmutableLocalizedLabelOperator builder
-
-