Package org.opendaylight.yangtools.util
Interface UnmodifiableMapPhase<K,V>
-
- Type Parameters:
K
- the type of keys maintained by this mapV
- the type of mapped values
- All Superinterfaces:
Immutable
,Map<K,V>
,MutationBehaviour<Immutable>
- All Known Implementing Classes:
ImmutableOffsetMap
,SharedSingletonMap
@Beta public interface UnmodifiableMapPhase<K,V> extends Map<K,V>, Immutable
AMap
which cannot be modified and supports efficient conversion to aModifiableMapPhase
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull ModifiableMapPhase<K,V>
toModifiableMap()
Return an isolated modifiable version of this map.-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Method Detail
-
toModifiableMap
@NonNull ModifiableMapPhase<K,V> toModifiableMap()
Return an isolated modifiable version of this map. Its mappings must match the mappings present in this map. Any modification of the returned map must not be affect the contents of this map.- Returns:
- An modifiable version of this map.
-
-