public interface FixedSizeMap<K,V> extends MutableMap<K,V>
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> map) |
V |
remove(Object key) |
boolean |
removeAllKeys(Set<? extends K> keys)
Remove entries from the map at the specified
keys. |
boolean |
removeIf(Predicate2<? super K,? super V> predicate)
Remove an entry from the map if the
predicate evaluates to true. |
V |
removeKey(K key)
Remove an entry from the map at the specified
key. |
FixedSizeMap<K,V> |
tap(Procedure<? super V> procedure)
Executes the Procedure for each value of the map and returns
this. |
default FixedSizeMap<K,V> |
withMap(Map<? extends K,? extends V> map)
Similar to
Map.putAll(Map), but returns this instead of void |
aggregateBy, aggregateBy, aggregateInPlaceBy, asSynchronized, asUnmodifiable, clone, collect, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectKeysAndValues, collectLong, collectShort, collectValues, collectWith, flatCollect, flatCollectWith, flip, flipUniqueValues, groupBy, groupByEach, groupByUniqueKey, newEmpty, partition, partitionWith, reject, reject, rejectWith, select, select, selectInstancesOf, selectWith, withAllKeyValueArguments, withAllKeyValues, withKeyValue, withoutAllKeys, withoutKey, zip, zipWithIndexadd, countBy, countByEach, countByWith, getIfAbsentPut, getIfAbsentPut, getIfAbsentPutWith, getIfAbsentPutWithKey, getOrDefault, putPair, sumByDouble, sumByFloat, sumByInt, sumByLong, toImmutable, updateValue, updateValueWithcompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, hashCode, isEmpty, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, valuestoImmutablecontainsKey, containsValue, detect, detectOptional, equals, forEachKey, forEachKeyValue, forEachValue, get, getIfAbsent, getIfAbsentValue, getIfAbsentWith, hashCode, ifPresentApply, keysView, keyValuesView, parallelStream, spliterator, stream, toString, valuesViewaggregateBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, containsBy, count, countBy, countByEach, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, flatCollectWith, forEach, getAny, getFirst, getLast, getOnly, groupBy, groupByAndCollect, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, into, isEmpty, makeString, makeString, makeString, max, max, maxBy, maxByOptional, maxOptional, maxOptional, min, min, minBy, minByOptional, minOptional, minOptional, noneSatisfy, noneSatisfyWith, notEmpty, reduce, reduceInPlace, reduceInPlace, reject, rejectWith, select, selectWith, size, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, zip, zipWithIndexforEach, forEachWith, forEachWithIndexvoid clear()
clear in interface Map<K,V>UnsupportedOperationException - the clear operation is not supported by this map.V put(K key, V value)
put in interface Map<K,V>UnsupportedOperationException - the put operation is not supported by this map.void putAll(Map<? extends K,? extends V> map)
putAll in interface Map<K,V>UnsupportedOperationException - the putAll operation is not supported by this map.V remove(Object key)
remove in interface Map<K,V>UnsupportedOperationException - the remove operation is not supported by this map.V removeKey(K key)
MutableMapIterablekey.removeKey in interface MutableMapIterable<K,V>UnsupportedOperationException - the removeKey operation is not supported by this map.Map.remove(Object)boolean removeAllKeys(Set<? extends K> keys)
MutableMapIterablekeys.removeAllKeys in interface MutableMapIterable<K,V>true if this map changed as a result of the callUnsupportedOperationException - the removeAllKeys operation is not supported by this map.boolean removeIf(Predicate2<? super K,? super V> predicate)
MutableMapIterablepredicate evaluates to true.removeIf in interface MutableMapIterable<K,V>UnsupportedOperationException - the removeIf operation is not supported by this map.FixedSizeMap<K,V> tap(Procedure<? super V> procedure)
MapIterablethis.
return peopleByCity.tap(person -> LOGGER.info(person.getName()));
tap in interface MapIterable<K,V>tap in interface MutableMap<K,V>tap in interface MutableMapIterable<K,V>tap in interface RichIterable<V>tap in interface UnsortedMapIterable<K,V>RichIterable.forEach(Procedure)default FixedSizeMap<K,V> withMap(Map<? extends K,? extends V> map)
MutableMapIterableMap.putAll(Map), but returns this instead of voidwithMap in interface MutableMap<K,V>withMap in interface MutableMapIterable<K,V>Map.putAll(Map)Copyright © 2004–2020. All rights reserved.