@Deprecated public final class ConcurrentMutableHashMap<K,V> extends AbstractMutableMap<K,V> implements ConcurrentMutableMap<K,V>, Serializable
ConcurrentHashMap,
Serialized Form| Constructor and Description |
|---|
ConcurrentMutableHashMap(ConcurrentMap<K,V> delegate)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Deprecated.
|
MutableMap<K,V> |
clone()
Deprecated.
|
<E> MutableMap<K,V> |
collectKeysAndValues(Iterable<E> iterable,
Function<? super E,? extends K> keyFunction,
Function<? super E,? extends V> valueFunction)
Deprecated.
|
boolean |
containsKey(Object key)
Deprecated.
|
boolean |
containsValue(Object value)
Deprecated.
|
Set<Map.Entry<K,V>> |
entrySet()
Deprecated.
|
boolean |
equals(Object o)
Deprecated.
|
void |
forEachKey(Procedure<? super K> procedure)
Deprecated.
|
void |
forEachKeyValue(Procedure2<? super K,? super V> procedure)
Deprecated.
|
void |
forEachValue(Procedure<? super V> procedure)
Deprecated.
|
<P> void |
forEachWith(Procedure2<? super V,? super P> procedure,
P parameter)
Deprecated.
|
void |
forEachWithIndex(ObjectIntProcedure<? super V> objectIntProcedure)
Deprecated.
|
V |
get(Object key)
Deprecated.
|
V |
getIfAbsent(K key,
Function0<? extends V> function)
Deprecated.
|
V |
getIfAbsentPut(K key,
Function<? super K,? extends V> factory)
Deprecated.
|
V |
getIfAbsentPut(K key,
Function0<? extends V> function)
Deprecated.
|
V |
getIfAbsentPut(K key,
V value)
Deprecated.
|
<P> V |
getIfAbsentPutWith(K key,
Function<? super P,? extends V> function,
P parameter)
Deprecated.
|
V |
getIfAbsentValue(K key,
V value)
Deprecated.
|
<P> V |
getIfAbsentWith(K key,
Function<? super P,? extends V> function,
P parameter)
Deprecated.
|
int |
hashCode()
Deprecated.
|
<A> A |
ifPresentApply(K key,
Function<? super V,? extends A> function)
Deprecated.
|
boolean |
isEmpty()
Deprecated.
|
Iterator<V> |
iterator()
Deprecated.
|
Set<K> |
keySet()
Deprecated.
|
MutableMap<K,V> |
newEmpty()
Deprecated.
|
<K,V> MutableMap<K,V> |
newEmpty(int capacity)
Deprecated.
Creates a new instance of the same type, using the given capacity and the default growth parameters.
|
static <NK,NV> ConcurrentMutableHashMap<NK,NV> |
newMap()
Deprecated.
|
static <NK,NV> ConcurrentMutableHashMap<NK,NV> |
newMap(int initialCapacity)
Deprecated.
|
static <NK,NV> ConcurrentMutableHashMap<NK,NV> |
newMap(int initialCapacity,
float loadFactor,
int concurrencyLevel)
Deprecated.
|
static <NK,NV> ConcurrentMutableHashMap<NK,NV> |
newMap(Map<NK,NV> map)
Deprecated.
|
boolean |
notEmpty()
Deprecated.
|
V |
put(K key,
V value)
Deprecated.
|
void |
putAll(Map<? extends K,? extends V> map)
Deprecated.
|
V |
putIfAbsent(K key,
V value)
Deprecated.
|
V |
remove(Object key)
Deprecated.
|
boolean |
remove(Object key,
Object value)
Deprecated.
|
V |
removeKey(K key)
Deprecated.
|
V |
replace(K key,
V value)
Deprecated.
|
boolean |
replace(K key,
V oldValue,
V newValue)
Deprecated.
|
int |
size()
Deprecated.
|
ConcurrentMutableMap<K,V> |
tap(Procedure<? super V> procedure)
Deprecated.
|
ImmutableMap<K,V> |
toImmutable()
Deprecated.
|
String |
toString()
Deprecated.
Returns a string with the elements of the iterable separated by commas with spaces and
enclosed in square brackets.
|
V |
updateValue(K key,
Function0<? extends V> factory,
Function<? super V,? extends V> function)
Deprecated.
|
<P> V |
updateValueWith(K key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter)
Deprecated.
|
Collection<V> |
values()
Deprecated.
|
ConcurrentMutableHashMap<K,V> |
withAllKeyValueArguments(Pair<? extends K,? extends V>... keyValues)
Deprecated.
|
ConcurrentMutableHashMap<K,V> |
withAllKeyValues(Iterable<? extends Pair<? extends K,? extends V>> keyValues)
Deprecated.
|
ConcurrentMutableHashMap<K,V> |
withKeyValue(K key,
V value)
Deprecated.
|
ConcurrentMutableHashMap<K,V> |
withoutAllKeys(Iterable<? extends K> keys)
Deprecated.
|
ConcurrentMutableHashMap<K,V> |
withoutKey(K key)
Deprecated.
|
asSynchronized, asUnmodifiable, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectValues, collectWith, flatCollect, flip, groupBy, groupByEach, groupByUniqueKey, partition, partitionWith, reject, reject, rejectWith, select, select, selectInstancesOf, selectWith, zip, zipWithIndexaggregateBy, collect, countBy, countByEach, countByWith, detect, detectOptional, flipUniqueValues, getIfAbsentPutWithKey, keysView, keyValuesView, sumByDouble, sumByFloat, sumByInt, sumByLong, valuesViewallSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, asLazy, chunk, contains, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, getFirst, getLast, getOnly, getOrDefault, noneSatisfy, noneSatisfyWith, toArray, toArrayappendString, appendString, collect, collectIf, collectWith, containsAll, containsAllArguments, containsAllIterable, count, countWith, flatCollect, forEach, groupBy, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, into, max, max, maxBy, min, min, minBy, reject, rejectWith, select, selectWith, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toBag, toBiMap, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, zip, zipWithIndexgetOrDefault, withMap, withMapIterableaggregateBy, aggregateBy, aggregateInPlaceBy, asSynchronized, asUnmodifiable, collect, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectValues, collectWith, flatCollect, flatCollectWith, flip, flipUniqueValues, groupBy, groupByEach, groupByUniqueKey, partition, partitionWith, reject, reject, rejectWith, select, select, selectInstancesOf, selectWith, zip, zipWithIndexadd, countBy, countByEach, countByWith, getIfAbsentPutWithKey, putAllMapIterable, putPair, removeAllKeys, removeIf, sumByDouble, sumByFloat, sumByInt, sumByLongcompute, computeIfAbsent, computeIfPresent, forEach, merge, replaceAlldetect, detectOptional, injectIntoKeyValue, keysView, keyValuesView, parallelStream, spliterator, stream, 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, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, 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, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, into, makeString, makeString, makeString, makeString, max, max, maxBy, maxByOptional, maxOptional, maxOptional, min, min, minBy, minByOptional, minOptional, minOptional, noneSatisfy, noneSatisfyWith, reduce, reduceInPlace, reduceInPlace, reject, rejectWith, select, selectWith, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toImmutableBag, toImmutableBiMap, toImmutableList, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, zip, zipWithIndexforEachcompute, computeIfAbsent, computeIfPresent, forEach, merge, replaceAllpublic ConcurrentMutableHashMap(ConcurrentMap<K,V> delegate)
public static <NK,NV> ConcurrentMutableHashMap<NK,NV> newMap()
public static <NK,NV> ConcurrentMutableHashMap<NK,NV> newMap(int initialCapacity)
public static <NK,NV> ConcurrentMutableHashMap<NK,NV> newMap(int initialCapacity, float loadFactor, int concurrencyLevel)
public static <NK,NV> ConcurrentMutableHashMap<NK,NV> newMap(Map<NK,NV> map)
public ConcurrentMutableHashMap<K,V> withKeyValue(K key, V value)
withKeyValue in interface MutableMap<K,V>withKeyValue in interface MutableMapIterable<K,V>withKeyValue in class AbstractMutableMap<K,V>public ConcurrentMutableHashMap<K,V> withAllKeyValues(Iterable<? extends Pair<? extends K,? extends V>> keyValues)
withAllKeyValues in interface MutableMap<K,V>withAllKeyValues in interface MutableMapIterable<K,V>withAllKeyValues in class AbstractMutableMap<K,V>public ConcurrentMutableHashMap<K,V> withAllKeyValueArguments(Pair<? extends K,? extends V>... keyValues)
withAllKeyValueArguments in interface MutableMap<K,V>withAllKeyValueArguments in interface MutableMapIterable<K,V>withAllKeyValueArguments in class AbstractMutableMap<K,V>public ConcurrentMutableHashMap<K,V> withoutKey(K key)
withoutKey in interface MutableMap<K,V>withoutKey in interface MutableMapIterable<K,V>withoutKey in class AbstractMutableMap<K,V>public ConcurrentMutableHashMap<K,V> withoutAllKeys(Iterable<? extends K> keys)
withoutAllKeys in interface MutableMap<K,V>withoutAllKeys in interface MutableMapIterable<K,V>withoutAllKeys in class AbstractMutableMap<K,V>public String toString()
AbstractRichIterable
Assert.assertEquals("[]", Lists.mutable.empty().toString());
Assert.assertEquals("[1]", Lists.mutable.with(1).toString());
Assert.assertEquals("[1, 2, 3]", Lists.mutable.with(1, 2, 3).toString());
toString in interface MapIterable<K,V>toString in interface RichIterable<V>toString in class AbstractRichIterable<V>AbstractCollection.toString()public MutableMap<K,V> clone()
clone in interface MutableMap<K,V>clone in class AbstractMutableMap<K,V>public <K,V> MutableMap<K,V> newEmpty(int capacity)
AbstractMutableMapnewEmpty in class AbstractMutableMap<K,V>public boolean notEmpty()
notEmpty in interface RichIterable<V>public void forEachWithIndex(ObjectIntProcedure<? super V> objectIntProcedure)
forEachWithIndex in interface InternalIterable<V>forEachWithIndex in class AbstractMapIterable<K,V>public int size()
public boolean isEmpty()
isEmpty in interface Map<K,V>isEmpty in interface RichIterable<V>isEmpty in class AbstractRichIterable<V>public MutableMap<K,V> newEmpty()
newEmpty in interface MutableMap<K,V>newEmpty in interface MutableMapIterable<K,V>public ConcurrentMutableMap<K,V> tap(Procedure<? super V> procedure)
tap in interface ConcurrentMutableMap<K,V>tap in interface MapIterable<K,V>tap in interface MutableMap<K,V>tap in interface MutableMapIterable<K,V>tap in interface UnsortedMapIterable<K,V>tap in interface RichIterable<V>tap in class AbstractMutableMap<K,V>public void forEachValue(Procedure<? super V> procedure)
forEachValue in interface MapIterable<K,V>forEachValue in class AbstractMapIterable<K,V>public void forEachKey(Procedure<? super K> procedure)
forEachKey in interface MapIterable<K,V>forEachKey in class AbstractMapIterable<K,V>public void forEachKeyValue(Procedure2<? super K,? super V> procedure)
forEachKeyValue in interface MapIterable<K,V>public <E> MutableMap<K,V> collectKeysAndValues(Iterable<E> iterable, Function<? super E,? extends K> keyFunction, Function<? super E,? extends V> valueFunction)
collectKeysAndValues in interface MutableMap<K,V>public V removeKey(K key)
removeKey in interface MutableMapIterable<K,V>public boolean containsKey(Object key)
containsKey in interface Map<K,V>containsKey in interface MapIterable<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>containsValue in interface MapIterable<K,V>public V getIfAbsentPut(K key, Function0<? extends V> function)
getIfAbsentPut in interface MutableMapIterable<K,V>getIfAbsentPut in class AbstractMutableMapIterable<K,V>public V getIfAbsentPut(K key, V value)
getIfAbsentPut in interface MutableMapIterable<K,V>getIfAbsentPut in class AbstractMutableMapIterable<K,V>public <P> V getIfAbsentPutWith(K key, Function<? super P,? extends V> function, P parameter)
getIfAbsentPutWith in interface MutableMapIterable<K,V>getIfAbsentPutWith in class AbstractMutableMapIterable<K,V>public V getIfAbsent(K key, Function0<? extends V> function)
getIfAbsent in interface MapIterable<K,V>getIfAbsent in class AbstractMapIterable<K,V>public V getIfAbsentValue(K key, V value)
getIfAbsentValue in interface MapIterable<K,V>getIfAbsentValue in class AbstractMapIterable<K,V>public <P> V getIfAbsentWith(K key, Function<? super P,? extends V> function, P parameter)
getIfAbsentWith in interface MapIterable<K,V>getIfAbsentWith in class AbstractMapIterable<K,V>public <A> A ifPresentApply(K key, Function<? super V,? extends A> function)
ifPresentApply in interface MapIterable<K,V>ifPresentApply in class AbstractMapIterable<K,V>public boolean equals(Object o)
public int hashCode()
public <P> void forEachWith(Procedure2<? super V,? super P> procedure, P parameter)
forEachWith in interface InternalIterable<V>forEachWith in class AbstractMapIterable<K,V>public V putIfAbsent(K key, V value)
putIfAbsent in interface ConcurrentMap<K,V>putIfAbsent in interface Map<K,V>public V updateValue(K key, Function0<? extends V> factory, Function<? super V,? extends V> function)
updateValue in interface MutableMapIterable<K,V>updateValue in class AbstractMutableMapIterable<K,V>public <P> V updateValueWith(K key, Function0<? extends V> factory, Function2<? super V,? super P,? extends V> function, P parameter)
updateValueWith in interface MutableMapIterable<K,V>updateValueWith in class AbstractMutableMapIterable<K,V>public ImmutableMap<K,V> toImmutable()
toImmutable in interface MapIterable<K,V>toImmutable in interface MutableMapIterable<K,V>toImmutable in interface UnsortedMapIterable<K,V>toImmutable in class AbstractMutableMap<K,V>Copyright © 2004–2022. All rights reserved.