Package io.dialob.program.expr.arith
Class ImmutableCountArrayLengthOperator
- java.lang.Object
-
- io.dialob.program.expr.arith.ImmutableCountArrayLengthOperator
-
- All Implemented Interfaces:
CountArrayLengthOperator,Expression,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableCountArrayLengthOperator extends Object implements CountArrayLengthOperator
Immutable implementation ofCountArrayLengthOperator.Use the builder to create immutable instances:
ImmutableCountArrayLengthOperator.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCountArrayLengthOperator.BuilderBuilds instances of typeImmutableCountArrayLengthOperator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCountArrayLengthOperator.Builderbuilder()Creates a builder forImmutableCountArrayLengthOperator.static ImmutableCountArrayLengthOperatorcopyOf(CountArrayLengthOperator instance)Creates an immutable copy of aCountArrayLengthOperatorvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCountArrayLengthOperatorthat have equal attribute values.ItemIdgetItemId()inthashCode()Computes a hash code from attributes:itemId.StringtoString()Prints the immutable valueCountArrayLengthOperatorwith attribute values.ImmutableCountArrayLengthOperatorwithItemId(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, wait
-
Methods inherited from interface io.dialob.program.expr.arith.CountArrayLengthOperator
eval, getEvalRequiredConditions, getValueType
-
-
-
-
Method Detail
-
getItemId
public ItemId getItemId()
- Specified by:
getItemIdin interfaceCountArrayLengthOperator- Returns:
- The value of the
itemIdattribute
-
withItemId
public final ImmutableCountArrayLengthOperator withItemId(ItemId value)
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 of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableCountArrayLengthOperatorthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:itemId.
-
toString
public String toString()
Prints the immutable valueCountArrayLengthOperatorwith attribute values.
-
copyOf
public static ImmutableCountArrayLengthOperator copyOf(CountArrayLengthOperator instance)
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
public static ImmutableCountArrayLengthOperator.Builder builder()
Creates a builder forImmutableCountArrayLengthOperator.ImmutableCountArrayLengthOperator.builder() .itemId(io.dialob.executor.model.ItemId) // requireditemId.build();- Returns:
- A new ImmutableCountArrayLengthOperator builder
-
-