public static interface Fluent.Map<K,V> extends Map<K,V>
| Modifier and Type | Method and Description |
|---|---|
default Fluent.Map<K,V> |
append(K key,
V val) |
default Fluent.Map<K,V> |
append(Map.Entry<? extends K,? extends V> entry)
Equivalent to append(key, value) of the input entry
|
default Fluent.Map<K,V> |
appendAll(Map<? extends K,? extends V> map) |
default Map<K,V> |
unmodifiable()
Returns an unmodifiable view 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, valuesdefault Fluent.Map<K,V> append(K key, V val)
java.util.Map#put(K, V)default Fluent.Map<K,V> appendAll(Map<? extends K,? extends V> map)
Map.putAll(java.util.Map)default Fluent.Map<K,V> append(Map.Entry<? extends K,? extends V> entry)
entry - map entry#append(K, V)default Map<K,V> unmodifiable()
Map<String, Integer> immutable = new Fluent.HashMap<String, Integer>()
.append("one", 1)
.append("two", 2)
.append("three", 3)
.unmodifiable();
See java.util.Collections#unmodifiableMap(Map)Copyright © 2016. All rights reserved.