@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableFailedWithException<T> extends Value.FailedWithException<T>
Value.FailedWithException.
Use the builder to create immutable instances:
ImmutableFailedWithException.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableFailedWithException.Builder<T>
Builds instances of type
ImmutableFailedWithException. |
Value.ArrayValue, Value.BooleanValue, Value.DateTimeValue, Value.DurationValue, Value.FailedWithException<T>, Value.MapValue, Value.NullValue, Value.NumberValue, Value.StringValue| Modifier and Type | Method and Description |
|---|---|
static <T> ImmutableFailedWithException.Builder<T> |
builder()
Creates a builder for
ImmutableFailedWithException. |
static <T> ImmutableFailedWithException<T> |
copyOf(Value.FailedWithException<T> instance)
Creates an immutable copy of a
Value.FailedWithException value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableFailedWithException that have equal attribute values. |
EvaluationException |
exception() |
int |
hashCode()
Computes a hash code from attributes:
exception. |
ImmutableFailedWithException<T> |
withException(EvaluationException value)
Copy the current immutable object by setting a value for the
exception attribute. |
T |
wrapped()
Returns a lazily initialized value of the
wrapped attribute. |
toStringpublic EvaluationException exception()
exception in class Value.FailedWithException<T>exception attributepublic final ImmutableFailedWithException<T> withException(EvaluationException value)
exception attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for exceptionthis objectpublic boolean equals(Object another)
ImmutableFailedWithException that have equal attribute values.public int hashCode()
exception.public T wrapped()
Returns a lazily initialized value of the wrapped attribute.
Initialized once and only once and stored for subsequent access with proper synchronization.
In case of any exception or error thrown by the lazy value initializer,
the result will not be memoised (i.e. remembered) and on next call computation
will be attempted again.
wrapped in class Value.FailedWithException<T>wrapped attributepublic static <T> ImmutableFailedWithException<T> copyOf(Value.FailedWithException<T> instance)
Value.FailedWithException value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.T - generic parameter Tinstance - The instance to copypublic static <T> ImmutableFailedWithException.Builder<T> builder()
ImmutableFailedWithException.
ImmutableFailedWithException.<T>builder()
.exception(de.flapdoodle.eval.core.exceptions.EvaluationException) // required exception
.build();
T - generic parameter TCopyright © 2024. All rights reserved.