Package io.substrait.type
Class ImmutableType.ParameterEnumValue
java.lang.Object
io.substrait.type.Type.ParameterEnumValue
io.substrait.type.ImmutableType.ParameterEnumValue
- All Implemented Interfaces:
Type.Parameter
- Enclosing class:
- ImmutableType
Immutable implementation of
Type.ParameterEnumValue.
Use the builder to create immutable instances:
ImmutableType.ParameterEnumValue.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forParameterEnumValue.copyOf(Type.ParameterEnumValue instance) Creates an immutable copy of aType.ParameterEnumValuevalue.booleanThis instance is equal to all instances ofParameterEnumValuethat have equal attribute values.inthashCode()Computes a hash code from attributes:value.toString()Prints the immutable valueParameterEnumValuewith attribute values.value()Copy the current immutable object by setting a value for thevalueattribute.
-
Method Details
-
value
- Specified by:
valuein classType.ParameterEnumValue- 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 ofParameterEnumValuethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:value. -
toString
Prints the immutable valueParameterEnumValuewith attribute values. -
copyOf
Creates an immutable copy of aType.ParameterEnumValuevalue. 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 ParameterEnumValue instance
-
builder
Creates a builder forParameterEnumValue.ImmutableType.ParameterEnumValue.builder() .value(String) // requiredvalue.build();- Returns:
- A new ParameterEnumValue builder
-