Class ImmutableExpression.MultiOrListRecord

java.lang.Object
io.substrait.expression.Expression.MultiOrListRecord
io.substrait.expression.ImmutableExpression.MultiOrListRecord
Enclosing class:
ImmutableExpression

public static final class ImmutableExpression.MultiOrListRecord extends Expression.MultiOrListRecord
Immutable implementation of Expression.MultiOrListRecord.

Use the builder to create immutable instances: ImmutableExpression.MultiOrListRecord.builder().

  • Method Details

    • values

      public List<Expression> values()
      Specified by:
      values in class Expression.MultiOrListRecord
      Returns:
      The value of the values attribute
    • withValues

      public final ImmutableExpression.MultiOrListRecord withValues(Expression... elements)
      Copy the current immutable object with elements that replace the content of values.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withValues

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

      public boolean equals(Object another)
      This instance is equal to all instances of MultiOrListRecord 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: values.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      Creates an immutable copy of a Expression.MultiOrListRecord 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 MultiOrListRecord instance
    • builder

      Creates a builder for MultiOrListRecord.
       ImmutableExpression.MultiOrListRecord.builder()
          .addValues|addAllValues(io.substrait.expression.Expression) // values elements
          .build();
       
      Returns:
      A new MultiOrListRecord builder