Class ImmutableCountArrayLengthOperator
java.lang.Object
io.dialob.session.engine.program.expr.arith.ImmutableCountArrayLengthOperator
- All Implemented Interfaces:
CountArrayLengthOperator,Expression,Serializable
@Generated(from="CountArrayLengthOperator",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableCountArrayLengthOperator
extends Object
implements CountArrayLengthOperator
Immutable implementation of
CountArrayLengthOperator.
Use the builder to create immutable instances:
ImmutableCountArrayLengthOperator.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableCountArrayLengthOperator. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableCountArrayLengthOperator.copyOf(CountArrayLengthOperator instance) Creates an immutable copy of aCountArrayLengthOperatorvalue.booleanThis instance is equal to all instances ofImmutableCountArrayLengthOperatorthat have equal attribute values.inthashCode()Computes a hash code from attributes:itemId.toString()Prints the immutable valueCountArrayLengthOperatorwith attribute values.withItemId(ItemId value) Copy the current immutable object by setting a value for theitemIdattribute.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.CountArrayLengthOperator
eval, getEvalRequiredConditions, getValueType
-
Method Details
-
getItemId
- Specified by:
getItemIdin interfaceCountArrayLengthOperator- Returns:
- The value of the
itemIdattribute
-
withItemId
Copy the current immutable object by setting a value for theitemIdattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for itemId- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofImmutableCountArrayLengthOperatorthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:itemId. -
toString
Prints the immutable valueCountArrayLengthOperatorwith attribute values. -
copyOf
Creates an immutable copy of aCountArrayLengthOperatorvalue. 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 CountArrayLengthOperator instance
-
builder
Creates a builder forImmutableCountArrayLengthOperator.ImmutableCountArrayLengthOperator.builder() .itemId(io.dialob.session.engine.session.model.ItemId) // requireditemId.build();- Returns:
- A new ImmutableCountArrayLengthOperator builder
-