public static final class ImmutableExpression.Builder extends Object
ImmutableExpression.
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.
| Modifier and Type | Method and Description |
|---|---|
ImmutableExpression |
build()
Builds a new
ImmutableExpression. |
ImmutableExpression.Builder |
from(Expression instance)
Fill a builder with attribute values from the provided
Expression instance. |
ImmutableExpression.Builder |
mathContext(MathContext mathContext)
Initializes the value for the
mathContext attribute. |
ImmutableExpression.Builder |
root(Node root)
Initializes the value for the
root attribute. |
ImmutableExpression.Builder |
source(String source)
Initializes the value for the
source attribute. |
ImmutableExpression.Builder |
zoneId(ZoneId zoneId)
Initializes the value for the
zoneId attribute. |
public final ImmutableExpression.Builder from(Expression instance)
Expression instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableExpression.Builder mathContext(MathContext mathContext)
mathContext attribute.mathContext - The value for mathContextthis builder for use in a chained invocationpublic final ImmutableExpression.Builder zoneId(ZoneId zoneId)
zoneId attribute.zoneId - The value for zoneIdthis builder for use in a chained invocationpublic final ImmutableExpression.Builder source(String source)
source attribute.source - The value for sourcethis builder for use in a chained invocationpublic final ImmutableExpression.Builder root(Node root)
root attribute.root - The value for rootthis builder for use in a chained invocationpublic ImmutableExpression build()
ImmutableExpression.IllegalStateException - if any required attributes are missingCopyright © 2024. All rights reserved.