Package com.floragunn.fluent.collections
Interface UnmodifiableMap<K,V>
-
- All Superinterfaces:
Map<K,V>
- All Known Subinterfaces:
ImmutableMap<K,V>,MapView<K,V>,OrderedImmutableMap<K,V>
public interface UnmodifiableMap<K,V> extends Map<K,V>
A map which cannot be changed by public methods. In contrast to immutable maps, background processes might still change its contents.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default voidclear()Deprecated.default VcomputeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)Deprecated.UnmodifiableSet<Map.Entry<K,V>>entrySet()UnmodifiableSet<K>keySet()default Vmerge(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction)Deprecated.static <K,V>
UnmodifiableMap<K,V>of(Map<K,V> map)default Vput(K key, V value)Deprecated.default voidputAll(Map<? extends K,? extends V> m)Deprecated.default VputIfAbsent(K key, V value)Deprecated.default Vremove(Object key)Deprecated.default booleanremove(Object key, Object value)Deprecated.default Vreplace(K key, V value)Deprecated.default booleanreplace(K key, V oldValue, V newValue)Deprecated.default voidreplaceAll(BiFunction<? super K,? super V,? extends V> function)Deprecated.UnmodifiableCollection<V>values()-
Methods inherited from interface java.util.Map
compute, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, size
-
-
-
-
Method Detail
-
of
static <K,V> UnmodifiableMap<K,V> of(Map<K,V> map)
-
remove
@Deprecated default V remove(Object key)
Deprecated.
-
putAll
@Deprecated default void putAll(Map<? extends K,? extends V> m)
Deprecated.
-
clear
@Deprecated default void clear()
Deprecated.
-
replaceAll
@Deprecated default void replaceAll(BiFunction<? super K,? super V,? extends V> function)
Deprecated.- Specified by:
replaceAllin interfaceMap<K,V>
-
putIfAbsent
@Deprecated default V putIfAbsent(K key, V value)
Deprecated.- Specified by:
putIfAbsentin interfaceMap<K,V>
-
remove
@Deprecated default boolean remove(Object key, Object value)
Deprecated.
-
replace
@Deprecated default boolean replace(K key, V oldValue, V newValue)
Deprecated.
-
replace
@Deprecated default V replace(K key, V value)
Deprecated.
-
computeIfAbsent
@Deprecated default V computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)
Deprecated.- Specified by:
computeIfAbsentin interfaceMap<K,V>
-
-