public class SynchronizedMutableMap<K,V> extends AbstractSynchronizedMapIterable<K,V> implements org.eclipse.collections.api.map.MutableMap<K,V>, Serializable
MutableMap. It is imperative that the user manually synchronize on the collection when iterating over it using the
standard JDK iterator or JDK 5 for loop, as per Collections.synchronizedCollection(Collection).MutableMap.asSynchronized(),
Serialized Form| Constructor and Description |
|---|
SynchronizedMutableMap(org.eclipse.collections.api.map.MutableMap<K,V> newMap) |
SynchronizedMutableMap(org.eclipse.collections.api.map.MutableMap<K,V> newMap,
Object newLock) |
| Modifier and Type | Method and Description |
|---|---|
<K2,V2> org.eclipse.collections.api.map.MutableMap<K2,V2> |
aggregateBy(org.eclipse.collections.api.block.function.Function<? super V,? extends K2> groupBy,
org.eclipse.collections.api.block.function.Function0<? extends V2> zeroValueFactory,
org.eclipse.collections.api.block.function.Function2<? super V2,? super V,? extends V2> nonMutatingAggregator) |
<K2,V2> org.eclipse.collections.api.map.MutableMap<K2,V2> |
aggregateInPlaceBy(org.eclipse.collections.api.block.function.Function<? super V,? extends K2> groupBy,
org.eclipse.collections.api.block.function.Function0<? extends V2> zeroValueFactory,
org.eclipse.collections.api.block.procedure.Procedure2<? super V2,? super V> mutatingAggregator) |
org.eclipse.collections.api.map.MutableMap<K,V> |
asSynchronized() |
org.eclipse.collections.api.map.MutableMap<K,V> |
asUnmodifiable() |
org.eclipse.collections.api.map.MutableMap<K,V> |
clone() |
<A> org.eclipse.collections.api.bag.MutableBag<A> |
collect(org.eclipse.collections.api.block.function.Function<? super V,? extends A> function) |
<K2,V2> org.eclipse.collections.api.map.MutableMap<K2,V2> |
collect(org.eclipse.collections.api.block.function.Function2<? super K,? super V,org.eclipse.collections.api.tuple.Pair<K2,V2>> pairFunction) |
org.eclipse.collections.api.bag.primitive.MutableBooleanBag |
collectBoolean(org.eclipse.collections.api.block.function.primitive.BooleanFunction<? super V> booleanFunction) |
org.eclipse.collections.api.bag.primitive.MutableByteBag |
collectByte(org.eclipse.collections.api.block.function.primitive.ByteFunction<? super V> byteFunction) |
org.eclipse.collections.api.bag.primitive.MutableCharBag |
collectChar(org.eclipse.collections.api.block.function.primitive.CharFunction<? super V> charFunction) |
org.eclipse.collections.api.bag.primitive.MutableDoubleBag |
collectDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super V> doubleFunction) |
org.eclipse.collections.api.bag.primitive.MutableFloatBag |
collectFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction<? super V> floatFunction) |
<A> org.eclipse.collections.api.bag.MutableBag<A> |
collectIf(org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate,
org.eclipse.collections.api.block.function.Function<? super V,? extends A> function) |
org.eclipse.collections.api.bag.primitive.MutableIntBag |
collectInt(org.eclipse.collections.api.block.function.primitive.IntFunction<? super V> intFunction) |
<E> org.eclipse.collections.api.map.MutableMap<K,V> |
collectKeysAndValues(Iterable<E> iterable,
org.eclipse.collections.api.block.function.Function<? super E,? extends K> keyFunction,
org.eclipse.collections.api.block.function.Function<? super E,? extends V> function) |
org.eclipse.collections.api.bag.primitive.MutableLongBag |
collectLong(org.eclipse.collections.api.block.function.primitive.LongFunction<? super V> longFunction) |
org.eclipse.collections.api.bag.primitive.MutableShortBag |
collectShort(org.eclipse.collections.api.block.function.primitive.ShortFunction<? super V> shortFunction) |
<R> org.eclipse.collections.api.map.MutableMap<K,R> |
collectValues(org.eclipse.collections.api.block.function.Function2<? super K,? super V,? extends R> function) |
<P,A> org.eclipse.collections.api.bag.MutableBag<A> |
collectWith(org.eclipse.collections.api.block.function.Function2<? super V,? super P,? extends A> function,
P parameter) |
Set<Map.Entry<K,V>> |
entrySet() |
<A> org.eclipse.collections.api.bag.MutableBag<A> |
flatCollect(org.eclipse.collections.api.block.function.Function<? super V,? extends Iterable<A>> function) |
org.eclipse.collections.api.multimap.set.MutableSetMultimap<V,K> |
flip() |
org.eclipse.collections.api.map.MutableMap<V,K> |
flipUniqueValues() |
<KK> org.eclipse.collections.api.multimap.bag.MutableBagMultimap<KK,V> |
groupBy(org.eclipse.collections.api.block.function.Function<? super V,? extends KK> function) |
<KK> org.eclipse.collections.api.multimap.bag.MutableBagMultimap<KK,V> |
groupByEach(org.eclipse.collections.api.block.function.Function<? super V,? extends Iterable<KK>> function) |
Set<K> |
keySet() |
org.eclipse.collections.api.RichIterable<K> |
keysView() |
org.eclipse.collections.api.map.MutableMap<K,V> |
newEmpty() |
static <K,V,M extends Map<K,V>> |
of(M map)
This method will take a MutableMap and wrap it directly in a SynchronizedMutableMap.
|
static <K,V,M extends Map<K,V>> |
of(M map,
Object lock)
This method will take a MutableMap and wrap it directly in a SynchronizedMutableMap.
|
org.eclipse.collections.api.partition.bag.PartitionMutableBag<V> |
partition(org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate) |
<P> org.eclipse.collections.api.partition.bag.PartitionMutableBag<V> |
partitionWith(org.eclipse.collections.api.block.predicate.Predicate2<? super V,? super P> predicate,
P parameter) |
org.eclipse.collections.api.bag.MutableBag<V> |
reject(org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate) |
org.eclipse.collections.api.map.MutableMap<K,V> |
reject(org.eclipse.collections.api.block.predicate.Predicate2<? super K,? super V> predicate) |
<P> org.eclipse.collections.api.bag.MutableBag<V> |
rejectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super V,? super P> predicate,
P parameter) |
org.eclipse.collections.api.bag.MutableBag<V> |
select(org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate) |
org.eclipse.collections.api.map.MutableMap<K,V> |
select(org.eclipse.collections.api.block.predicate.Predicate2<? super K,? super V> predicate) |
<S> org.eclipse.collections.api.bag.MutableBag<S> |
selectInstancesOf(Class<S> clazz) |
<P> org.eclipse.collections.api.bag.MutableBag<V> |
selectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super V,? super P> predicate,
P parameter) |
org.eclipse.collections.api.map.MutableMap<K,V> |
tap(org.eclipse.collections.api.block.procedure.Procedure<? super V> procedure) |
org.eclipse.collections.api.map.ImmutableMap<K,V> |
toImmutable() |
Collection<V> |
values() |
org.eclipse.collections.api.RichIterable<V> |
valuesView() |
org.eclipse.collections.api.map.MutableMap<K,V> |
withAllKeyValueArguments(org.eclipse.collections.api.tuple.Pair<? extends K,? extends V>... keyValuePairs) |
org.eclipse.collections.api.map.MutableMap<K,V> |
withAllKeyValues(Iterable<? extends org.eclipse.collections.api.tuple.Pair<? extends K,? extends V>> keyValues) |
org.eclipse.collections.api.map.MutableMap<K,V> |
withKeyValue(K key,
V value) |
org.eclipse.collections.api.map.MutableMap<K,V> |
withoutAllKeys(Iterable<? extends K> keys) |
org.eclipse.collections.api.map.MutableMap<K,V> |
withoutKey(K key) |
<S> org.eclipse.collections.api.bag.MutableBag<org.eclipse.collections.api.tuple.Pair<V,S>> |
zip(Iterable<S> that)
Deprecated.
in 6.0. Use
OrderedIterable.zip(Iterable) instead. |
org.eclipse.collections.api.set.MutableSet<org.eclipse.collections.api.tuple.Pair<V,Integer>> |
zipWithIndex()
Deprecated.
in 6.0. Use
OrderedIterable.zipWithIndex() instead. |
add, clear, containsKey, containsValue, detect, forEachKey, forEachKeyValue, forEachValue, get, getIfAbsent, getIfAbsentPut, getIfAbsentPut, getIfAbsentPutWith, getIfAbsentPutWithKey, getIfAbsentValue, getIfAbsentWith, ifPresentApply, keyValuesView, put, putAll, remove, removeKey, 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, countWith, detect, detectIfNone, detectWith, detectWithIfNone, each, equals, flatCollect, forEach, forEachWith, forEachWithIndex, getFirst, getLast, groupBy, groupByEach, groupByUniqueKey, groupByUniqueKey, hashCode, injectInto, injectInto, injectInto, injectInto, injectInto, isEmpty, iterator, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, notEmpty, reject, rejectWith, select, selectWith, size, sumByDouble, sumByFloat, sumByInt, sumByLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, toString, zip, zipWithIndexgetClass, hashCode, notify, notifyAll, wait, wait, waitadd, getIfAbsentPut, getIfAbsentPut, getIfAbsentPutWith, getIfAbsentPutWithKey, removeKey, updateValue, updateValueWithclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, sizecontainsKey, containsValue, detect, equals, forEachKey, forEachKeyValue, forEachValue, get, getIfAbsent, getIfAbsentValue, getIfAbsentWith, hashCode, ifPresentApply, keyValuesView, toStringallSatisfy, 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, detectWith, detectWithIfNone, each, flatCollect, getFirst, getLast, groupBy, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, isEmpty, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, notEmpty, reject, rejectWith, select, selectWith, size, sumByDouble, sumByFloat, sumByInt, sumByLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, zip, zipWithIndexforEach, forEachWith, forEachWithIndexforEach, iterator, spliteratorpublic SynchronizedMutableMap(org.eclipse.collections.api.map.MutableMap<K,V> newMap)
public static <K,V,M extends Map<K,V>> SynchronizedMutableMap<K,V> of(M map)
public static <K,V,M extends Map<K,V>> SynchronizedMutableMap<K,V> of(M map, Object lock)
public org.eclipse.collections.api.map.MutableMap<K,V> withAllKeyValueArguments(org.eclipse.collections.api.tuple.Pair<? extends K,? extends V>... keyValuePairs)
public org.eclipse.collections.api.map.MutableMap<K,V> withAllKeyValues(Iterable<? extends org.eclipse.collections.api.tuple.Pair<? extends K,? extends V>> keyValues)
public org.eclipse.collections.api.map.MutableMap<K,V> withoutAllKeys(Iterable<? extends K> keys)
public <E> org.eclipse.collections.api.map.MutableMap<K,V> collectKeysAndValues(Iterable<E> iterable, org.eclipse.collections.api.block.function.Function<? super E,? extends K> keyFunction, org.eclipse.collections.api.block.function.Function<? super E,? extends V> function)
public org.eclipse.collections.api.map.MutableMap<K,V> select(org.eclipse.collections.api.block.predicate.Predicate2<? super K,? super V> predicate)
select in interface org.eclipse.collections.api.map.MapIterable<K,V>select in interface org.eclipse.collections.api.map.MutableMap<K,V>select in interface org.eclipse.collections.api.map.MutableMapIterable<K,V>select in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>public org.eclipse.collections.api.map.MutableMap<K,V> reject(org.eclipse.collections.api.block.predicate.Predicate2<? super K,? super V> predicate)
reject in interface org.eclipse.collections.api.map.MapIterable<K,V>reject in interface org.eclipse.collections.api.map.MutableMap<K,V>reject in interface org.eclipse.collections.api.map.MutableMapIterable<K,V>reject in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>public <K2,V2> org.eclipse.collections.api.map.MutableMap<K2,V2> collect(org.eclipse.collections.api.block.function.Function2<? super K,? super V,org.eclipse.collections.api.tuple.Pair<K2,V2>> pairFunction)
collect in interface org.eclipse.collections.api.map.MapIterable<K,V>collect in interface org.eclipse.collections.api.map.MutableMap<K,V>collect in interface org.eclipse.collections.api.map.MutableMapIterable<K,V>collect in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>public <R> org.eclipse.collections.api.map.MutableMap<K,R> collectValues(org.eclipse.collections.api.block.function.Function2<? super K,? super V,? extends R> function)
collectValues in interface org.eclipse.collections.api.map.MapIterable<K,V>collectValues in interface org.eclipse.collections.api.map.MutableMap<K,V>collectValues in interface org.eclipse.collections.api.map.MutableMapIterable<K,V>collectValues in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>public org.eclipse.collections.api.map.MutableMap<K,V> tap(org.eclipse.collections.api.block.procedure.Procedure<? super V> procedure)
tap in interface org.eclipse.collections.api.map.MapIterable<K,V>tap in interface org.eclipse.collections.api.map.MutableMap<K,V>tap in interface org.eclipse.collections.api.map.MutableMapIterable<K,V>tap in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>tap in interface org.eclipse.collections.api.RichIterable<V>public org.eclipse.collections.api.bag.MutableBag<V> select(org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate)
select in interface org.eclipse.collections.api.map.MutableMap<K,V>select in interface org.eclipse.collections.api.map.MutableMapIterable<K,V>select in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>select in interface org.eclipse.collections.api.RichIterable<V>public <P> org.eclipse.collections.api.bag.MutableBag<V> selectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super V,? super P> predicate, P parameter)
selectWith in interface org.eclipse.collections.api.map.MutableMap<K,V>selectWith in interface org.eclipse.collections.api.map.MutableMapIterable<K,V>selectWith in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>selectWith in interface org.eclipse.collections.api.RichIterable<V>public org.eclipse.collections.api.bag.MutableBag<V> reject(org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate)
reject in interface org.eclipse.collections.api.map.MutableMap<K,V>reject in interface org.eclipse.collections.api.map.MutableMapIterable<K,V>reject in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>reject in interface org.eclipse.collections.api.RichIterable<V>public <P> org.eclipse.collections.api.bag.MutableBag<V> rejectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super V,? super P> predicate, P parameter)
rejectWith in interface org.eclipse.collections.api.map.MutableMap<K,V>rejectWith in interface org.eclipse.collections.api.map.MutableMapIterable<K,V>rejectWith in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>rejectWith in interface org.eclipse.collections.api.RichIterable<V>public org.eclipse.collections.api.partition.bag.PartitionMutableBag<V> partition(org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate)
partition in interface org.eclipse.collections.api.map.MutableMap<K,V>partition in interface org.eclipse.collections.api.map.MutableMapIterable<K,V>partition in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>partition in interface org.eclipse.collections.api.RichIterable<V>@Deprecated public org.eclipse.collections.api.set.MutableSet<org.eclipse.collections.api.tuple.Pair<V,Integer>> zipWithIndex()
OrderedIterable.zipWithIndex() instead.zipWithIndex in interface org.eclipse.collections.api.map.MutableMap<K,V>zipWithIndex in interface org.eclipse.collections.api.map.MutableMapIterable<K,V>zipWithIndex in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>zipWithIndex in interface org.eclipse.collections.api.RichIterable<V>public <P> org.eclipse.collections.api.partition.bag.PartitionMutableBag<V> partitionWith(org.eclipse.collections.api.block.predicate.Predicate2<? super V,? super P> predicate, P parameter)
public <S> org.eclipse.collections.api.bag.MutableBag<S> selectInstancesOf(Class<S> clazz)
selectInstancesOf in interface org.eclipse.collections.api.map.MutableMap<K,V>selectInstancesOf in interface org.eclipse.collections.api.map.MutableMapIterable<K,V>selectInstancesOf in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>selectInstancesOf in interface org.eclipse.collections.api.RichIterable<V>public <A> org.eclipse.collections.api.bag.MutableBag<A> collect(org.eclipse.collections.api.block.function.Function<? super V,? extends A> function)
public org.eclipse.collections.api.bag.primitive.MutableBooleanBag collectBoolean(org.eclipse.collections.api.block.function.primitive.BooleanFunction<? super V> booleanFunction)
public org.eclipse.collections.api.bag.primitive.MutableByteBag collectByte(org.eclipse.collections.api.block.function.primitive.ByteFunction<? super V> byteFunction)
public org.eclipse.collections.api.bag.primitive.MutableCharBag collectChar(org.eclipse.collections.api.block.function.primitive.CharFunction<? super V> charFunction)
public org.eclipse.collections.api.bag.primitive.MutableDoubleBag collectDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super V> doubleFunction)
public org.eclipse.collections.api.bag.primitive.MutableFloatBag collectFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction<? super V> floatFunction)
public org.eclipse.collections.api.bag.primitive.MutableIntBag collectInt(org.eclipse.collections.api.block.function.primitive.IntFunction<? super V> intFunction)
public org.eclipse.collections.api.bag.primitive.MutableLongBag collectLong(org.eclipse.collections.api.block.function.primitive.LongFunction<? super V> longFunction)
public org.eclipse.collections.api.bag.primitive.MutableShortBag collectShort(org.eclipse.collections.api.block.function.primitive.ShortFunction<? super V> shortFunction)
public <P,A> org.eclipse.collections.api.bag.MutableBag<A> collectWith(org.eclipse.collections.api.block.function.Function2<? super V,? super P,? extends A> function, P parameter)
public <A> org.eclipse.collections.api.bag.MutableBag<A> collectIf(org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate, org.eclipse.collections.api.block.function.Function<? super V,? extends A> function)
public <A> org.eclipse.collections.api.bag.MutableBag<A> flatCollect(org.eclipse.collections.api.block.function.Function<? super V,? extends Iterable<A>> function)
public <KK> org.eclipse.collections.api.multimap.bag.MutableBagMultimap<KK,V> groupBy(org.eclipse.collections.api.block.function.Function<? super V,? extends KK> function)
groupBy in interface org.eclipse.collections.api.map.MutableMap<K,V>groupBy in interface org.eclipse.collections.api.map.MutableMapIterable<K,V>groupBy in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>groupBy in interface org.eclipse.collections.api.RichIterable<V>public <KK> org.eclipse.collections.api.multimap.bag.MutableBagMultimap<KK,V> groupByEach(org.eclipse.collections.api.block.function.Function<? super V,? extends Iterable<KK>> function)
groupByEach in interface org.eclipse.collections.api.map.MutableMap<K,V>groupByEach in interface org.eclipse.collections.api.map.MutableMapIterable<K,V>groupByEach in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>groupByEach in interface org.eclipse.collections.api.RichIterable<V>@Deprecated public <S> org.eclipse.collections.api.bag.MutableBag<org.eclipse.collections.api.tuple.Pair<V,S>> zip(Iterable<S> that)
OrderedIterable.zip(Iterable) instead.zip in interface org.eclipse.collections.api.map.MutableMap<K,V>zip in interface org.eclipse.collections.api.map.MutableMapIterable<K,V>zip in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>zip in interface org.eclipse.collections.api.RichIterable<V>public <K2,V2> org.eclipse.collections.api.map.MutableMap<K2,V2> aggregateInPlaceBy(org.eclipse.collections.api.block.function.Function<? super V,? extends K2> groupBy, org.eclipse.collections.api.block.function.Function0<? extends V2> zeroValueFactory, org.eclipse.collections.api.block.procedure.Procedure2<? super V2,? super V> mutatingAggregator)
public <K2,V2> org.eclipse.collections.api.map.MutableMap<K2,V2> aggregateBy(org.eclipse.collections.api.block.function.Function<? super V,? extends K2> groupBy, org.eclipse.collections.api.block.function.Function0<? extends V2> zeroValueFactory, org.eclipse.collections.api.block.function.Function2<? super V2,? super V,? extends V2> nonMutatingAggregator)
public org.eclipse.collections.api.map.MutableMap<V,K> flipUniqueValues()
flipUniqueValues in interface org.eclipse.collections.api.map.MapIterable<K,V>flipUniqueValues in interface org.eclipse.collections.api.map.MutableMap<K,V>flipUniqueValues in interface org.eclipse.collections.api.map.MutableMapIterable<K,V>flipUniqueValues in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>public org.eclipse.collections.api.multimap.set.MutableSetMultimap<V,K> flip()
flip in interface org.eclipse.collections.api.map.MapIterable<K,V>flip in interface org.eclipse.collections.api.map.MutableMap<K,V>flip in interface org.eclipse.collections.api.map.MutableMapIterable<K,V>flip in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>public org.eclipse.collections.api.RichIterable<K> keysView()
public org.eclipse.collections.api.RichIterable<V> valuesView()
Copyright © 2004–2018. All rights reserved.