@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableValueMap extends ValueMap
ValueMap.
Use the builder to create immutable instances:
ImmutableValueMap.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableValueMap.Builder
Builds instances of type
ImmutableValueMap. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableValueMap.Builder |
builder()
Creates a builder for
ImmutableValueMap. |
static ImmutableValueMap |
copyOf(ValueMap instance)
Creates an immutable copy of a
ValueMap value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableValueMap that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
values. |
String |
toString()
Prints the immutable value
ValueMap with attribute values. |
protected Map<String,Value<?>> |
values() |
ImmutableValueMap |
withValues(Map<String,? extends Value<?>> entries)
Copy the current immutable object by replacing the
values map with the specified map. |
containsKey, get, ofpublic final ImmutableValueMap withValues(Map<String,? extends Value<?>> entries)
values map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.entries - The entries to be added to the values mapthis objectpublic boolean equals(Object another)
ImmutableValueMap that have equal attribute values.public int hashCode()
values.public String toString()
ValueMap with attribute values.public static ImmutableValueMap copyOf(ValueMap instance)
ValueMap 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 ImmutableValueMap.Builder builder()
ImmutableValueMap.
ImmutableValueMap.builder()
.putValues|putAllValues(String => de.flapdoodle.eval.example.Value<?>) // values mappings
.build();
Copyright © 2024. All rights reserved.