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