| Package | Description |
|---|---|
| net.digitalid.utility.collections.map |
Provides one read-only and several freezable maps.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
FreezableMap<K,V>
This interface models a
map that can be frozen. |
| Modifier and Type | Class and Description |
|---|---|
class |
FreezableHashMap<K,V>
This class extends the
HashMap and makes it freezable. |
class |
FreezableLinkedHashMap<K,V>
This class extends the
LinkedHashMap and makes it freezable. |
| Modifier and Type | Method and Description |
|---|---|
@Nonnull @Frozen ReadOnlyMap<K,V> |
FreezableHashMap.freeze() |
@Nonnull @Frozen ReadOnlyMap<K,V> |
FreezableLinkedHashMap.freeze() |
@Nonnull @Frozen ReadOnlyMap<K,V> |
FreezableMap.freeze() |
| Modifier and Type | Method and Description |
|---|---|
default void |
FreezableMap.putAll(@Nonnull ReadOnlyMap<? extends K,? extends V> map)
Adds the entries of the given map to this map.
|
default void |
FreezableMap.removeAll(@Nonnull ReadOnlyMap<? extends K,? extends V> map)
Removes the keys of the given map from this map.
|
static <K,V> @NonFrozen FreezableHashMap<K,V> |
FreezableHashMap.withMappingsOf(ReadOnlyMap<? extends K,? extends V> map)
Returns a new freezable hash map with the mappings of the given map or null if the given map is null.
|
static <K,V> @NonFrozen FreezableLinkedHashMap<K,V> |
FreezableLinkedHashMap.withMappingsOf(ReadOnlyMap<? extends K,? extends V> map)
Returns a new freezable linked hash map with the mappings of the given map or null if the given map is null.
|
Copyright © 2017. All rights reserved.