Class ImmutableSizeOperator
java.lang.Object
io.dialob.session.engine.program.expr.arith.ImmutableSizeOperator
- All Implemented Interfaces:
SizeOperator,UnaryOperator,Expression,Serializable
@Generated(from="SizeOperator",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableSizeOperator
extends Object
implements SizeOperator
Immutable implementation of
SizeOperator.
Use the builder to create immutable instances:
ImmutableSizeOperator.builder().
Use the static factory method to create immutable instances:
ImmutableSizeOperator.of().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableSizeOperator. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableSizeOperator.static ImmutableSizeOperatorcopyOf(SizeOperator instance) Creates an immutable copy of aSizeOperatorvalue.booleanThis instance is equal to all instances ofImmutableSizeOperatorthat have equal attribute values.inthashCode()Computes a hash code from attributes:expression.static ImmutableSizeOperatorof(Expression expression) Construct a new immutableSizeOperatorinstance.toString()Prints the immutable valueSizeOperatorwith attribute values.final ImmutableSizeOperatorwithExpression(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, waitMethods inherited from interface io.dialob.session.engine.program.expr.arith.SizeOperator
apply, getValueTypeMethods inherited from interface io.dialob.session.engine.program.expr.arith.UnaryOperator
eval, getEvalRequiredConditions
-
Method Details
-
getExpression
- Specified by:
getExpressionin interfaceUnaryOperator- Returns:
- The value of the
expressionattribute
-
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
-
equals
This instance is equal to all instances ofImmutableSizeOperatorthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:expression. -
toString
Prints the immutable valueSizeOperatorwith attribute values. -
of
Construct a new immutableSizeOperatorinstance.- Parameters:
expression- The value for theexpressionattribute- Returns:
- An immutable SizeOperator instance
-
copyOf
Creates an immutable copy of aSizeOperatorvalue. 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 SizeOperator instance
-
builder
Creates a builder forImmutableSizeOperator.ImmutableSizeOperator.builder() .expression(io.dialob.session.engine.program.model.Expression) // requiredexpression.build();- Returns:
- A new ImmutableSizeOperator builder
-