Package io.dialob.program.expr.arith
Class ImmutableValueSetEntryToStringOperator
- java.lang.Object
-
- io.dialob.program.expr.arith.ImmutableValueSetEntryToStringOperator
-
- All Implemented Interfaces:
ValueSetEntryToStringOperator,Expression,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableValueSetEntryToStringOperator extends Object implements ValueSetEntryToStringOperator
Immutable implementation ofValueSetEntryToStringOperator.Use the builder to create immutable instances:
ImmutableValueSetEntryToStringOperator.builder(). Use the static factory method to create immutable instances:ImmutableValueSetEntryToStringOperator.of().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableValueSetEntryToStringOperator.BuilderBuilds instances of typeImmutableValueSetEntryToStringOperator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableValueSetEntryToStringOperator.Builderbuilder()Creates a builder forImmutableValueSetEntryToStringOperator.static ImmutableValueSetEntryToStringOperatorcopyOf(ValueSetEntryToStringOperator instance)Creates an immutable copy of aValueSetEntryToStringOperatorvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableValueSetEntryToStringOperatorthat have equal attribute values.ExpressiongetExpression()ValueSetIdgetValueSetId()inthashCode()Computes a hash code from attributes:valueSetId,expression.static ImmutableValueSetEntryToStringOperatorof(ValueSetId valueSetId, Expression expression)Construct a new immutableValueSetEntryToStringOperatorinstance.StringtoString()Prints the immutable valueValueSetEntryToStringOperatorwith attribute values.ImmutableValueSetEntryToStringOperatorwithExpression(Expression value)Copy the current immutable object by setting a value for theexpressionattribute.ImmutableValueSetEntryToStringOperatorwithValueSetId(ValueSetId value)Copy the current immutable object by setting a value for thevalueSetIdattribute.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.dialob.program.expr.arith.ValueSetEntryToStringOperator
eval, getEvalRequiredConditions, getValueType
-
-
-
-
Method Detail
-
getValueSetId
public ValueSetId getValueSetId()
- Specified by:
getValueSetIdin interfaceValueSetEntryToStringOperator- Returns:
- The value of the
valueSetIdattribute
-
getExpression
public Expression getExpression()
- Specified by:
getExpressionin interfaceValueSetEntryToStringOperator- Returns:
- The value of the
expressionattribute
-
withValueSetId
public final ImmutableValueSetEntryToStringOperator withValueSetId(ValueSetId value)
Copy the current immutable object by setting a value for thevalueSetIdattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for valueSetId- Returns:
- A modified copy of the
thisobject
-
withExpression
public final ImmutableValueSetEntryToStringOperator withExpression(Expression value)
Copy the current immutable object by setting a value for theexpressionattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for expression- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableValueSetEntryToStringOperatorthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:valueSetId,expression.
-
toString
public String toString()
Prints the immutable valueValueSetEntryToStringOperatorwith attribute values.
-
of
public static ImmutableValueSetEntryToStringOperator of(ValueSetId valueSetId, Expression expression)
Construct a new immutableValueSetEntryToStringOperatorinstance.- Parameters:
valueSetId- The value for thevalueSetIdattributeexpression- The value for theexpressionattribute- Returns:
- An immutable ValueSetEntryToStringOperator instance
-
copyOf
public static ImmutableValueSetEntryToStringOperator copyOf(ValueSetEntryToStringOperator instance)
Creates an immutable copy of aValueSetEntryToStringOperatorvalue. 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 ValueSetEntryToStringOperator instance
-
builder
public static ImmutableValueSetEntryToStringOperator.Builder builder()
Creates a builder forImmutableValueSetEntryToStringOperator.ImmutableValueSetEntryToStringOperator.builder() .valueSetId(io.dialob.executor.model.ValueSetId) // requiredvalueSetId.expression(io.dialob.program.model.Expression) // requiredexpression.build();- Returns:
- A new ImmutableValueSetEntryToStringOperator builder
-
-