@Generated(value="org.immutables.processor.ProxyProcessor") public final class GeneratedImmutableTypedMap<K> extends ImmutableTypedMap<K>
ImmutableTypedMap.
Use the builder to create immutable instances:
GeneratedImmutableTypedMap.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
GeneratedImmutableTypedMap.Builder<K>
Builds instances of type
GeneratedImmutableTypedMap. |
| Modifier and Type | Method and Description |
|---|---|
static <K> GeneratedImmutableTypedMap.Builder<K> |
builder()
Creates a builder for
GeneratedImmutableTypedMap. |
static <K> GeneratedImmutableTypedMap<K> |
copyOf(ImmutableTypedMap<K> instance)
Creates an immutable copy of a
ImmutableTypedMap value. |
boolean |
equals(Object another)
This instance is equal to all instances of
GeneratedImmutableTypedMap that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
map. |
Set<Pair<K,? extends TypeInfo<?>>> |
keySet()
Returns a lazily initialized value of the
keySet attribute. |
protected Map<Pair<K,? extends TypeInfo<?>>,Object> |
map() |
String |
toString()
Prints the immutable value
ImmutableTypedMap with attribute values. |
GeneratedImmutableTypedMap<K> |
withMap(Map<? extends Pair<K,? extends TypeInfo<?>>,? extends Object> entries)
Copy the current immutable object by replacing the
map map with the specified map. |
add, addAll, asMutable, copyOf, empty, get, of, ofprotected Map<Pair<K,? extends TypeInfo<?>>,Object> map()
map in class ImmutableTypedMap<K>map attributepublic final GeneratedImmutableTypedMap<K> withMap(Map<? extends Pair<K,? extends TypeInfo<?>>,? extends Object> entries)
map 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 map mapthis objectpublic boolean equals(Object another)
GeneratedImmutableTypedMap that have equal attribute values.public int hashCode()
map.public String toString()
ImmutableTypedMap with attribute values.public Set<Pair<K,? extends TypeInfo<?>>> keySet()
Returns a lazily initialized value of the keySet 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.
public static <K> GeneratedImmutableTypedMap<K> copyOf(ImmutableTypedMap<K> instance)
ImmutableTypedMap value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.K - generic parameter Kinstance - The instance to copypublic static <K> GeneratedImmutableTypedMap.Builder<K> builder()
GeneratedImmutableTypedMap.
GeneratedImmutableTypedMap.<K>builder()
.putMap|putAllMap(de.flapdoodle.types.Pair<K, ? extends de.flapdoodle.reflection.TypeInfo<?>> => Object) // map mappings
.build();
K - generic parameter KCopyright © 2024. All rights reserved.