public static final class ImmutableEvaluationContext.Builder extends Object
ImmutableEvaluationContext.
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 |
|---|---|
ImmutableEvaluationContext |
build()
Builds a new
ImmutableEvaluationContext. |
ImmutableEvaluationContext.Builder |
from(EvaluationContext instance)
Fill a builder with attribute values from the provided
EvaluationContext instance. |
ImmutableEvaluationContext.Builder |
mathContext(MathContext mathContext)
Initializes the value for the
mathContext attribute. |
ImmutableEvaluationContext.Builder |
zoneId(ZoneId zoneId)
Initializes the value for the
zoneId attribute. |
public final ImmutableEvaluationContext.Builder from(EvaluationContext instance)
EvaluationContext 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 ImmutableEvaluationContext.Builder mathContext(MathContext mathContext)
mathContext attribute.mathContext - The value for mathContextthis builder for use in a chained invocationpublic final ImmutableEvaluationContext.Builder zoneId(ZoneId zoneId)
zoneId attribute.zoneId - The value for zoneIdthis builder for use in a chained invocationpublic ImmutableEvaluationContext build()
ImmutableEvaluationContext.IllegalStateException - if any required attributes are missingCopyright © 2024. All rights reserved.