Class ImmutableType.ParameterDataType

java.lang.Object
io.substrait.type.Type.ParameterDataType
io.substrait.type.ImmutableType.ParameterDataType
All Implemented Interfaces:
Type.Parameter
Enclosing class:
ImmutableType

public static final class ImmutableType.ParameterDataType extends Type.ParameterDataType
Immutable implementation of Type.ParameterDataType.

Use the builder to create immutable instances: ImmutableType.ParameterDataType.builder().

  • Method Details

    • type

      public Type type()
      Specified by:
      type in class Type.ParameterDataType
      Returns:
      The value of the type attribute
    • withType

      public final ImmutableType.ParameterDataType withType(Type value)
      Copy the current immutable object by setting a value for the type attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for type
      Returns:
      A modified copy or the this object
    • equals

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

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

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

      public static ImmutableType.ParameterDataType.Builder builder()
      Creates a builder for ParameterDataType.
       ImmutableType.ParameterDataType.builder()
          .type(io.substrait.type.Type) // required type
          .build();
       
      Returns:
      A new ParameterDataType builder