K
- the type of keys maintained by this mapV
- the type of mapped values@Beta public interface ModifiableMapPhase<K,V> extends Map<K,V>, Mutable
Map
which can be modified and supports efficient conversion to an
unmodifiable map. This interface is the logical counterpart to
UnmodifiableMapPhase
, but it does not require implementations of
toUnmodifiableMap()
to return an implementation of that interface.
The reason for that empty and singleton mappings are efficiently represented
as ImmutableMap
, which does not implement
UnmodifiableMapPhase
.Modifier and Type | Method and Description |
---|---|
Map<K,V> |
toUnmodifiableMap()
Return an isolated unmodifiable version of this 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
@Nonnull Map<K,V> toUnmodifiableMap()
Copyright © 2018 OpenDaylight. All rights reserved.