Class ImmutableFormatOperator
java.lang.Object
io.dialob.session.engine.program.expr.arith.ImmutableFormatOperator
- All Implemented Interfaces:
FormatOperator,Expression,Serializable
@Generated(from="FormatOperator",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableFormatOperator
extends Object
implements FormatOperator
Immutable implementation of
FormatOperator.
Use the builder to create immutable instances:
ImmutableFormatOperator.builder().
Use the static factory method to create immutable instances:
ImmutableFormatOperator.of().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableFormatOperator. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableFormatOperator.static ImmutableFormatOperatorcopyOf(FormatOperator instance) Creates an immutable copy of aFormatOperatorvalue.booleanThis instance is equal to all instances ofImmutableFormatOperatorthat have equal attribute values.inthashCode()Computes a hash code from attributes:expression,format.static ImmutableFormatOperatorof(Expression expression, String format) Construct a new immutableFormatOperatorinstance.toString()Prints the immutable valueFormatOperatorwith attribute values.final ImmutableFormatOperatorwithExpression(Expression value) Copy the current immutable object by setting a value for theexpressionattribute.final ImmutableFormatOperatorwithFormat(String value) Copy the current immutable object by setting a value for theformatattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.dialob.session.engine.program.expr.arith.FormatOperator
eval, getEvalRequiredConditions, getValueType
-
Method Details
-
getExpression
- Specified by:
getExpressionin interfaceFormatOperator- Returns:
- The value of the
expressionattribute
-
getFormat
- Specified by:
getFormatin interfaceFormatOperator- Returns:
- The value of the
formatattribute
-
withExpression
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 or the
thisobject
-
withFormat
Copy the current immutable object by setting a value for theformatattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for format- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofImmutableFormatOperatorthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:expression,format. -
toString
Prints the immutable valueFormatOperatorwith attribute values. -
of
Construct a new immutableFormatOperatorinstance.- Parameters:
expression- The value for theexpressionattributeformat- The value for theformatattribute- Returns:
- An immutable FormatOperator instance
-
copyOf
Creates an immutable copy of aFormatOperatorvalue. 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 FormatOperator instance
-
builder
Creates a builder forImmutableFormatOperator.ImmutableFormatOperator.builder() .expression(io.dialob.session.engine.program.model.Expression) // requiredexpression.format(String) // requiredformat.build();- Returns:
- A new ImmutableFormatOperator builder
-