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) |
|
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, forEachWithIndex
forEach, iterator, spliterator
compute, 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, values
containsKey, containsValue, detect, detectOptional, equals, forEachKey, forEachKeyValue, forEachValue, get, getIfAbsent, getIfAbsentValue, getIfAbsentWith, hashCode, ifPresentApply, keysView, keyValuesView, toString, valuesView
aggregateBy, aggregateInPlaceBy, asSynchronized, asUnmodifiable, clone, collect, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectKeysAndValues, collectLong, collectShort, collectValues, collectWith, flatCollect, flip, flipUniqueValues, groupBy, groupByEach, groupByUniqueKey, newEmpty, partition, partitionWith, reject, reject, rejectWith, select, select, selectInstancesOf, selectWith, withAllKeyValueArguments, withAllKeyValues, withKeyValue, withoutAllKeys, withoutKey, zip, zipWithIndex
add, getIfAbsentPut, getIfAbsentPut, getIfAbsentPutWith, getIfAbsentPutWithKey, sumByDouble, sumByFloat, sumByInt, sumByLong, toImmutable, updateValue, updateValueWith
allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, count, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, flatCollect, getFirst, getLast, getOnly, groupBy, 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, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, zip, zipWithIndex
toImmutable
void clear()
clear
in interface Map<K,V>
UnsupportedOperationException
V put(K key, V value)
put
in interface Map<K,V>
UnsupportedOperationException
void putAll(Map<? extends K,? extends V> map)
putAll
in interface Map<K,V>
UnsupportedOperationException
V remove(Object key)
remove
in interface Map<K,V>
UnsupportedOperationException
V removeKey(K key)
MutableMapIterable
key
.removeKey
in interface MutableMapIterable<K,V>
UnsupportedOperationException
Map.remove(Object)
FixedSizeMap<K,V> tap(Procedure<? super V> procedure)
MapIterable
this
.
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>
InternalIterable.forEach(Procedure)
Copyright © 2004–2017. All rights reserved.