Package io.substrait.type
Class ImmutableType.ParameterStringValue
java.lang.Object
io.substrait.type.Type.ParameterStringValue
io.substrait.type.ImmutableType.ParameterStringValue
- All Implemented Interfaces:
Type.Parameter
- Enclosing class:
- ImmutableType
Immutable implementation of
Type.ParameterStringValue.
Use the builder to create immutable instances:
ImmutableType.ParameterStringValue.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeParameterStringValue. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forParameterStringValue.copyOf(Type.ParameterStringValue instance) Creates an immutable copy of aType.ParameterStringValuevalue.booleanThis instance is equal to all instances ofParameterStringValuethat have equal attribute values.inthashCode()Computes a hash code from attributes:value.toString()Prints the immutable valueParameterStringValuewith attribute values.value()Copy the current immutable object by setting a value for thevalueattribute.
-
Method Details
-
value
- Specified by:
valuein classType.ParameterStringValue- Returns:
- The value of the
valueattribute
-
withValue
Copy the current immutable object by setting a value for thevalueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for value- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofParameterStringValuethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:value. -
toString
Prints the immutable valueParameterStringValuewith attribute values. -
copyOf
Creates an immutable copy of aType.ParameterStringValuevalue. 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 ParameterStringValue instance
-
builder
Creates a builder forParameterStringValue.ImmutableType.ParameterStringValue.builder() .value(String) // requiredvalue.build();- Returns:
- A new ParameterStringValue builder
-