Package io.dialob.program.expr.arith
Class ImmutableNotOperator.Builder
- java.lang.Object
-
- io.dialob.program.expr.arith.ImmutableNotOperator.Builder
-
- Enclosing class:
- ImmutableNotOperator
@NotThreadSafe public static final class ImmutableNotOperator.Builder extends Object
Builds instances of typeImmutableNotOperator. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableNotOperatorbuild()Builds a newImmutableNotOperator.ImmutableNotOperator.Builderexpression(Expression expression)Initializes the value for theexpressionattribute.ImmutableNotOperator.Builderfrom(NotOperator instance)Fill a builder with attribute values from the providedio.dialob.program.expr.arith.NotOperatorinstance.ImmutableNotOperator.Builderfrom(UnaryOperator instance)Fill a builder with attribute values from the providedio.dialob.program.expr.arith.UnaryOperatorinstance.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableNotOperator.Builder from(UnaryOperator instance)
Fill a builder with attribute values from the providedio.dialob.program.expr.arith.UnaryOperatorinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableNotOperator.Builder from(NotOperator instance)
Fill a builder with attribute values from the providedio.dialob.program.expr.arith.NotOperatorinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
expression
@CanIgnoreReturnValue public final ImmutableNotOperator.Builder expression(Expression expression)
Initializes the value for theexpressionattribute.- Parameters:
expression- The value for expression- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableNotOperator build()
Builds a newImmutableNotOperator.- Returns:
- An immutable instance of NotOperator
- Throws:
IllegalStateException- if any required attributes are missing
-
-