@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableMapValue extends Value.MapValue
Value.MapValue.
Use the builder to create immutable instances:
ImmutableMapValue.builder().
Use the static factory method to create immutable instances:
ImmutableMapValue.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableMapValue.Builder
Builds instances of type
ImmutableMapValue. |
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 ImmutableMapValue.Builder |
builder()
Creates a builder for
ImmutableMapValue. |
static ImmutableMapValue |
copyOf(Value.MapValue instance)
Creates an immutable copy of a
Value.MapValue value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableMapValue that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
wrapped. |
static ImmutableMapValue |
of(ValueMap wrapped)
Construct a new immutable
MapValue instance. |
ImmutableMapValue |
withWrapped(ValueMap value)
Copy the current immutable object by setting a value for the
wrapped attribute. |
ValueMap |
wrapped() |
public ValueMap wrapped()
public final ImmutableMapValue withWrapped(ValueMap 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 wrappedthis objectpublic boolean equals(Object another)
ImmutableMapValue that have equal attribute values.public int hashCode()
wrapped.public static ImmutableMapValue of(ValueMap wrapped)
MapValue instance.wrapped - The value for the wrapped attributepublic static ImmutableMapValue copyOf(Value.MapValue instance)
Value.MapValue 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 ImmutableMapValue.Builder builder()
ImmutableMapValue.
ImmutableMapValue.builder()
.wrapped(de.flapdoodle.eval.example.ValueMap) // required wrapped
.build();
Copyright © 2024. All rights reserved.