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.
|
@Nonnull Map<K,V> toUnmodifiableMap()
Copyright © 2017 OpenDaylight. All rights reserved.