Class ImmutableVariableReference.Builder<T>
java.lang.Object
io.dialob.session.engine.program.expr.arith.ImmutableVariableReference.Builder<T>
- Enclosing class:
ImmutableVariableReference<T>
@Generated(from="VariableReference",
generator="Immutables")
@NotThreadSafe
public static final class ImmutableVariableReference.Builder<T>
extends Object
Builds instances of type
ImmutableVariableReference.
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 Summary
Modifier and TypeMethodDescriptionbuild()Builds a newImmutableVariableReference.from(VariableReference<T> instance) Fill a builder with attribute values from the providedio.dialob.session.engine.program.expr.arith.VariableReferenceinstance.from(Expression instance) Fill a builder with attribute values from the providedio.dialob.session.engine.program.model.Expressioninstance.Initializes the value for theitemIdattribute.Initializes the value for thevalueTypeattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableVariableReference.Builder<T> from(VariableReference<T> instance) Fill a builder with attribute values from the providedio.dialob.session.engine.program.expr.arith.VariableReferenceinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.dialob.session.engine.program.model.Expressioninstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
valueType
@CanIgnoreReturnValue public final ImmutableVariableReference.Builder<T> valueType(ValueType valueType) Initializes the value for thevalueTypeattribute.- Parameters:
valueType- The value for valueType- Returns:
thisbuilder for use in a chained invocation
-
itemId
Initializes the value for theitemIdattribute.- Parameters:
itemId- The value for itemId- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableVariableReference.- Returns:
- An immutable instance of VariableReference
- Throws:
IllegalStateException- if any required attributes are missing
-