Package io.substrait.extension
Class ImmutableSimpleExtension.TypeArgument
java.lang.Object
io.substrait.extension.SimpleExtension.TypeArgument
io.substrait.extension.ImmutableSimpleExtension.TypeArgument
- All Implemented Interfaces:
SimpleExtension.Argument
- Enclosing class:
- ImmutableSimpleExtension
public static final class ImmutableSimpleExtension.TypeArgument
extends SimpleExtension.TypeArgument
Immutable implementation of
SimpleExtension.TypeArgument.
Use the builder to create immutable instances:
ImmutableSimpleExtension.TypeArgument.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forTypeArgument.copyOf(SimpleExtension.TypeArgument instance) Creates an immutable copy of aSimpleExtension.TypeArgumentvalue.@Nullable StringbooleanThis instance is equal to all instances ofTypeArgumentthat have equal attribute values.inthashCode()Computes a hash code from attributes:name,description,type.@Nullable Stringname()toString()Prints the immutable valueTypeArgumentwith attribute values.type()withDescription(@Nullable String value) Copy the current immutable object by setting a value for thedescriptionattribute.Copy the current immutable object by setting a value for thenameattribute.withType(ParameterizedType value) Copy the current immutable object by setting a value for thetypeattribute.Methods inherited from class io.substrait.extension.SimpleExtension.TypeArgument
required, toTypeString
-
Method Details
-
name
- Returns:
- The value of the
nameattribute
-
description
- Returns:
- The value of the
descriptionattribute
-
type
- Specified by:
typein classSimpleExtension.TypeArgument- Returns:
- The value of the
typeattribute
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name (can benull)- Returns:
- A modified copy or the
thisobject
-
withDescription
Copy the current immutable object by setting a value for thedescriptionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for description (can benull)- Returns:
- A modified copy or the
thisobject
-
withType
Copy the current immutable object by setting a value for thetypeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofTypeArgumentthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:name,description,type. -
toString
Prints the immutable valueTypeArgumentwith attribute values. -
copyOf
Creates an immutable copy of aSimpleExtension.TypeArgumentvalue. 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 TypeArgument instance
-
builder
Creates a builder forTypeArgument.ImmutableSimpleExtension.TypeArgument.builder() .name(String | null) // nullablename.description(String | null) // nullabledescription.type(io.substrait.function.ParameterizedType) // requiredtype.build();- Returns:
- A new TypeArgument builder
-