Cloneable, InternalIterable<K>, Iterable<K>, Map<K,V>, MapIterable<K,V>, MutableMap<K,V>, MutableMapIterable<K,V>, RichIterable<K>, UnsortedMapIterable<K,V>public interface FixedSizeMap<K,V> extends MutableMap<K,V>
| Modifier and Type | Method | 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. |
forEach, forEachWith, forEachWithIndexcompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entry, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, of, of, of, of, of, of, of, of, of, of, of, ofEntries, putIfAbsent, remove, replace, replace, replaceAll, size, valuescontainsKey, containsValue, detect, detectOptional, equals, forEachKey, forEachKeyValue, forEachValue, get, getIfAbsent, getIfAbsentValue, getIfAbsentWith, hashCode, ifPresentApply, keysView, keyValuesView, parallelStream, spliterator, stream, toString, valuesViewaggregateBy, 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, putPair, sumByDouble, sumByFloat, sumByInt, sumByLong, toImmutable, updateValue, updateValueWithallSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, count, countBy, countByEach, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, flatCollect, 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, zipWithIndextoImmutablevoid 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>UnsupportedOperationException - 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<K>tap in interface UnsortedMapIterable<K,V>RichIterable.forEach(Procedure)Copyright © 2004–2019. All rights reserved.