Package io.dialob.program.expr.arith
Class ImmutableCoerceToDecimalOperator
- java.lang.Object
-
- io.dialob.program.expr.arith.ImmutableCoerceToDecimalOperator
-
- All Implemented Interfaces:
CoerceToDecimalOperator,Expression,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableCoerceToDecimalOperator extends Object implements CoerceToDecimalOperator
Immutable implementation ofCoerceToDecimalOperator.Use the builder to create immutable instances:
ImmutableCoerceToDecimalOperator.builder(). Use the static factory method to create immutable instances:ImmutableCoerceToDecimalOperator.of().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCoerceToDecimalOperator.BuilderBuilds instances of typeImmutableCoerceToDecimalOperator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCoerceToDecimalOperator.Builderbuilder()Creates a builder forImmutableCoerceToDecimalOperator.static ImmutableCoerceToDecimalOperatorcopyOf(CoerceToDecimalOperator instance)Creates an immutable copy of aCoerceToDecimalOperatorvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCoerceToDecimalOperatorthat have equal attribute values.ExpressiongetExpression()inthashCode()Computes a hash code from attributes:expression.static ImmutableCoerceToDecimalOperatorof(Expression expression)Construct a new immutableCoerceToDecimalOperatorinstance.StringtoString()Prints the immutable valueCoerceToDecimalOperatorwith attribute values.ImmutableCoerceToDecimalOperatorwithExpression(Expression value)Copy the current immutable object by setting a value for theexpressionattribute.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.dialob.program.expr.arith.CoerceToDecimalOperator
eval, getEvalRequiredConditions, getValueType
-
-
-
-
Method Detail
-
getExpression
public Expression getExpression()
- Specified by:
getExpressionin interfaceCoerceToDecimalOperator- Returns:
- The value of the
expressionattribute
-
withExpression
public final ImmutableCoerceToDecimalOperator 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 ofImmutableCoerceToDecimalOperatorthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:expression.
-
toString
public String toString()
Prints the immutable valueCoerceToDecimalOperatorwith attribute values.
-
of
public static ImmutableCoerceToDecimalOperator of(Expression expression)
Construct a new immutableCoerceToDecimalOperatorinstance.- Parameters:
expression- The value for theexpressionattribute- Returns:
- An immutable CoerceToDecimalOperator instance
-
copyOf
public static ImmutableCoerceToDecimalOperator copyOf(CoerceToDecimalOperator instance)
Creates an immutable copy of aCoerceToDecimalOperatorvalue. 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 CoerceToDecimalOperator instance
-
builder
public static ImmutableCoerceToDecimalOperator.Builder builder()
Creates a builder forImmutableCoerceToDecimalOperator.ImmutableCoerceToDecimalOperator.builder() .expression(io.dialob.program.model.Expression) // requiredexpression.build();- Returns:
- A new ImmutableCoerceToDecimalOperator builder
-
-