Class ImmutableWindowBound.CurrentRow

java.lang.Object
io.substrait.expression.WindowBound.CurrentRow
io.substrait.expression.ImmutableWindowBound.CurrentRow
All Implemented Interfaces:
WindowBound
Enclosing class:
ImmutableWindowBound

public static final class ImmutableWindowBound.CurrentRow extends WindowBound.CurrentRow
Immutable implementation of WindowBound.CurrentRow.

Use the builder to create immutable instances: ImmutableWindowBound.CurrentRow.builder().

  • Method Details

    • equals

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

      public int hashCode()
      Returns a constant hash code value.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

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

      public static ImmutableWindowBound.CurrentRow.Builder builder()
      Creates a builder for CurrentRow.
       ImmutableWindowBound.CurrentRow.builder()
          .build();
       
      Returns:
      A new CurrentRow builder