@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableEvaluationContext extends Object implements EvaluationContext
EvaluationContext.
Use the builder to create immutable instances:
ImmutableEvaluationContext.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableEvaluationContext.Builder
Builds instances of type
ImmutableEvaluationContext. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableEvaluationContext.Builder |
builder()
Creates a builder for
ImmutableEvaluationContext. |
static ImmutableEvaluationContext |
copyOf(EvaluationContext instance)
Creates an immutable copy of a
EvaluationContext value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableEvaluationContext that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
mathContext, zoneId. |
MathContext |
mathContext() |
String |
toString()
Prints the immutable value
EvaluationContext with attribute values. |
ImmutableEvaluationContext |
withMathContext(MathContext value)
Copy the current immutable object by setting a value for the
mathContext attribute. |
ImmutableEvaluationContext |
withZoneId(ZoneId value)
Copy the current immutable object by setting a value for the
zoneId attribute. |
ZoneId |
zoneId() |
public MathContext mathContext()
mathContext in interface EvaluationContextmathContext attributepublic ZoneId zoneId()
zoneId in interface EvaluationContextzoneId attributepublic final ImmutableEvaluationContext withMathContext(MathContext value)
mathContext attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for mathContextthis objectpublic final ImmutableEvaluationContext withZoneId(ZoneId value)
zoneId attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for zoneIdthis objectpublic boolean equals(Object another)
ImmutableEvaluationContext that have equal attribute values.public int hashCode()
mathContext, zoneId.public String toString()
EvaluationContext with attribute values.public static ImmutableEvaluationContext copyOf(EvaluationContext instance)
EvaluationContext value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableEvaluationContext.Builder builder()
ImmutableEvaluationContext.
ImmutableEvaluationContext.builder()
.mathContext(java.math.MathContext) // required mathContext
.zoneId(java.time.ZoneId) // required zoneId
.build();
builder in interface EvaluationContextCopyright © 2024. All rights reserved.