@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableEvaluated<T> extends Evaluated<T>
Evaluated.
Use the builder to create immutable instances:
ImmutableEvaluated.builder().
Use the static factory method to create immutable instances:
ImmutableEvaluated.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableEvaluated.Builder<T>
Builds instances of type
ImmutableEvaluated. |
| Modifier and Type | Method and Description |
|---|---|
static <T> ImmutableEvaluated.Builder<T> |
builder()
Creates a builder for
ImmutableEvaluated. |
static <T> ImmutableEvaluated<T> |
copyOf(Evaluated<T> instance)
Creates an immutable copy of a
Evaluated value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableEvaluated that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
type, wrapped, isNull. |
boolean |
isNull() |
static <T> ImmutableEvaluated<T> |
of(de.flapdoodle.reflection.TypeInfo<T> type,
T wrapped)
Construct a new immutable
Evaluated instance. |
String |
toString()
Prints the immutable value
Evaluated with attribute values. |
de.flapdoodle.reflection.TypeInfo<T> |
type() |
ImmutableEvaluated<T> |
withType(de.flapdoodle.reflection.TypeInfo<T> value)
Copy the current immutable object by setting a value for the
type attribute. |
ImmutableEvaluated<T> |
withWrapped(T value)
Copy the current immutable object by setting a value for the
wrapped attribute. |
T |
wrapped() |
asList, ofNull, ofNull, ofNullable, ofNullable, unwrap, value, wrappublic de.flapdoodle.reflection.TypeInfo<T> type()
public T wrapped()
public boolean isNull()
public final ImmutableEvaluated<T> withType(de.flapdoodle.reflection.TypeInfo<T> value)
type attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for typethis objectpublic final ImmutableEvaluated<T> withWrapped(T value)
wrapped attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for wrapped (can be null)this objectpublic boolean equals(Object another)
ImmutableEvaluated that have equal attribute values.public int hashCode()
type, wrapped, isNull.public String toString()
Evaluated with attribute values.public static <T> ImmutableEvaluated<T> of(de.flapdoodle.reflection.TypeInfo<T> type, T wrapped)
Evaluated instance.T - generic parameter Ttype - The value for the type attributewrapped - The value for the wrapped attributepublic static <T> ImmutableEvaluated<T> copyOf(Evaluated<T> instance)
Evaluated 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> ImmutableEvaluated.Builder<T> builder()
ImmutableEvaluated.
ImmutableEvaluated.<T>builder()
.type(de.flapdoodle.reflection.TypeInfo<T>) // required type
.wrapped(T | null) // nullable wrapped
.build();
T - generic parameter TCopyright © 2024. All rights reserved.