Class ImmutableWindowBound.Unbounded

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

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

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

  • Method Details

    • equals

      public boolean equals(Object another)
      This instance is equal to all instances of Unbounded 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 Unbounded.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ImmutableWindowBound.Unbounded copyOf(WindowBound.Unbounded instance)
      Creates an immutable copy of a WindowBound.Unbounded 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 Unbounded instance
    • builder

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