Class ImmutableRowItemsExpression

java.lang.Object
io.dialob.session.engine.program.expr.arith.ImmutableRowItemsExpression
All Implemented Interfaces:
RowItemsExpression, Expression, Serializable

@Generated(from="RowItemsExpression", generator="Immutables") @ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableRowItemsExpression extends Object implements RowItemsExpression
Immutable implementation of RowItemsExpression.

Use the builder to create immutable instances: ImmutableRowItemsExpression.builder().

See Also:
  • Method Details

    • getItemIds

      public com.google.common.collect.ImmutableList<ItemId> getItemIds()
      Specified by:
      getItemIds in interface RowItemsExpression
      Returns:
      The value of the itemIds attribute
    • withItemIds

      public final ImmutableRowItemsExpression withItemIds(ItemId... elements)
      Copy the current immutable object with elements that replace the content of itemIds.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withItemIds

      public final ImmutableRowItemsExpression withItemIds(Iterable<? extends ItemId> elements)
      Copy the current immutable object with elements that replace the content of itemIds. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of itemIds elements to set
      Returns:
      A modified copy or this if not changed
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableRowItemsExpression that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: itemIds.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value RowItemsExpression with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ImmutableRowItemsExpression copyOf(RowItemsExpression instance)
      Creates an immutable copy of a RowItemsExpression value. 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 for ImmutableRowItemsExpression.
       ImmutableRowItemsExpression.builder()
          .addItemIds|addAllItemIds(io.dialob.session.engine.session.model.ItemId) // itemIds elements
          .build();
       
      Returns:
      A new ImmutableRowItemsExpression builder