Class ImmutableConstant.Builder<T>

java.lang.Object
io.dialob.session.engine.program.expr.arith.ImmutableConstant.Builder<T>
Enclosing class:
ImmutableConstant<T>

@Generated(from="Constant", generator="Immutables") @NotThreadSafe public static final class ImmutableConstant.Builder<T> extends Object
Builds instances of type ImmutableConstant. Initialize attributes and then invoke the build() method to create an immutable instance.

Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Method Details

    • from

      @CanIgnoreReturnValue public final ImmutableConstant.Builder<T> from(Constant<T> instance)
      Fill a builder with attribute values from the provided io.dialob.session.engine.program.expr.arith.Constant instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      @CanIgnoreReturnValue public final ImmutableConstant.Builder<T> from(Expression instance)
      Fill a builder with attribute values from the provided io.dialob.session.engine.program.model.Expression instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • value

      @CanIgnoreReturnValue public final ImmutableConstant.Builder<T> value(T value)
      Initializes the value for the value attribute.
      Parameters:
      value - The value for value
      Returns:
      this builder for use in a chained invocation
    • valueType

      @CanIgnoreReturnValue public final ImmutableConstant.Builder<T> valueType(ValueType valueType)
      Initializes the value for the valueType attribute.
      Parameters:
      valueType - The value for valueType
      Returns:
      this builder for use in a chained invocation
    • build

      public ImmutableConstant<T> build()
      Builds a new ImmutableConstant.
      Returns:
      An immutable instance of Constant
      Throws:
      IllegalStateException - if any required attributes are missing