Package io.dialob.program.expr.arith
Class ImmutableRowItemsExpression
- java.lang.Object
-
- io.dialob.program.expr.arith.ImmutableRowItemsExpression
-
- All Implemented Interfaces:
RowItemsExpression,Expression,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableRowItemsExpression extends Object implements RowItemsExpression
Immutable implementation ofRowItemsExpression.Use the builder to create immutable instances:
ImmutableRowItemsExpression.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRowItemsExpression.BuilderBuilds instances of typeImmutableRowItemsExpression.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableRowItemsExpression.Builderbuilder()Creates a builder forImmutableRowItemsExpression.static ImmutableRowItemsExpressioncopyOf(RowItemsExpression instance)Creates an immutable copy of aRowItemsExpressionvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableRowItemsExpressionthat have equal attribute values.com.google.common.collect.ImmutableList<ItemId>getItemIds()inthashCode()Computes a hash code from attributes:itemIds.StringtoString()Prints the immutable valueRowItemsExpressionwith attribute values.ImmutableRowItemsExpressionwithItemIds(ItemId... elements)Copy the current immutable object with elements that replace the content ofitemIds.ImmutableRowItemsExpressionwithItemIds(Iterable<? extends ItemId> elements)Copy the current immutable object with elements that replace the content ofitemIds.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.dialob.program.model.Expression
getEvalRequiredConditions
-
Methods inherited from interface io.dialob.program.expr.arith.RowItemsExpression
eval, getValueType
-
-
-
-
Method Detail
-
getItemIds
public com.google.common.collect.ImmutableList<ItemId> getItemIds()
- Specified by:
getItemIdsin interfaceRowItemsExpression- Returns:
- The value of the
itemIdsattribute
-
withItemIds
public final ImmutableRowItemsExpression withItemIds(ItemId... elements)
Copy the current immutable object with elements that replace the content ofitemIds.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withItemIds
public final ImmutableRowItemsExpression withItemIds(Iterable<? extends ItemId> elements)
Copy the current immutable object with elements that replace the content ofitemIds. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of itemIds elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableRowItemsExpressionthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:itemIds.
-
toString
public String toString()
Prints the immutable valueRowItemsExpressionwith attribute values.
-
copyOf
public static ImmutableRowItemsExpression copyOf(RowItemsExpression instance)
Creates an immutable copy of aRowItemsExpressionvalue. 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 RowItemsExpression instance
-
builder
public static ImmutableRowItemsExpression.Builder builder()
Creates a builder forImmutableRowItemsExpression.ImmutableRowItemsExpression.builder() .addItemIds|addAllItemIds(io.dialob.executor.model.ItemId) //itemIdselements .build();- Returns:
- A new ImmutableRowItemsExpression builder
-
-