Package io.substrait.type
Class ImmutableType.ParameterBooleanValue
java.lang.Object
io.substrait.type.Type.ParameterBooleanValue
io.substrait.type.ImmutableType.ParameterBooleanValue
- All Implemented Interfaces:
Type.Parameter
- Enclosing class:
- ImmutableType
Immutable implementation of
Type.ParameterBooleanValue.
Use the builder to create immutable instances:
ImmutableType.ParameterBooleanValue.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeParameterBooleanValue. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forParameterBooleanValue.copyOf(Type.ParameterBooleanValue instance) Creates an immutable copy of aType.ParameterBooleanValuevalue.booleanThis instance is equal to all instances ofParameterBooleanValuethat have equal attribute values.inthashCode()Computes a hash code from attributes:value.toString()Prints the immutable valueParameterBooleanValuewith attribute values.booleanvalue()withValue(boolean value) Copy the current immutable object by setting a value for thevalueattribute.
-
Method Details
-
value
public boolean value()- Specified by:
valuein classType.ParameterBooleanValue- Returns:
- The value of the
valueattribute
-
withValue
Copy the current immutable object by setting a value for thevalueattribute. A value equality check is 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 ofParameterBooleanValuethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:value. -
toString
Prints the immutable valueParameterBooleanValuewith attribute values. -
copyOf
Creates an immutable copy of aType.ParameterBooleanValuevalue. 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 ParameterBooleanValue instance
-
builder
Creates a builder forParameterBooleanValue.ImmutableType.ParameterBooleanValue.builder() .value(boolean) // requiredvalue.build();- Returns:
- A new ParameterBooleanValue builder
-