Deprecated
since 2.0
org.eclipse.collections.impl.map.mutable.ConcurrentHashMap
| Modifier and Type | Field and Description |
|---|---|
| private final ConcurrentMap | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Implements java. Removes all of the mappings from this map (optional operation). |
| public MutableMap | clone()
Implements abstract org. Implements org. Creates and returns a copy of this object. |
| public <E> MutableMap | collectKeysAndValues(Iterable<E> iterable, Function<? super E, ? extends K> keyFunction, Function<? super E, ? extends V> valueFunction)
Implements org. Adds all the entries derived from |
| public boolean | containsKey(Object key)
Implements org. Returns |
| public boolean | containsValue(Object value)
Implements org. Returns |
| public Set | entrySet()
Implements java. Returns a |
| public boolean | equals(Object o)
Overrides java. Implements org. Follows the same general contract as |
| public void | forEachKey(Procedure<? super K> procedure)
Overrides org. Implements org. Calls the |
| public void | forEachKeyValue(Procedure2<? super K, ? super V> procedure)
Implements org. Calls the |
| public void | forEachValue(Procedure<? super V> procedure)
Overrides org. Implements org. Calls the procedure with each value of the map. |
| public <P> void | forEachWith(Procedure2<? super V, ? super P> procedure, P parameter)
Overrides org. Implements org. The procedure2 is evaluated for each element in the iterable with the specified parameter provided as the second argument. |
| public void | forEachWithIndex(ObjectIntProcedure<? super V> objectIntProcedure)
Overrides org. Implements org. Iterates over the iterable passing each element and the current relative int index to the specified instance of ObjectIntProcedure. |
| public V | get(Object key)
Implements org. Returns the value to which the specified key is mapped,
or |
| public V | getIfAbsent(K key, Function0<? extends V> function)
Overrides org. Implements org. Return the value in the Map that corresponds to the specified key, or if there is no value at the key, return the result of evaluating the specified Function0. |
| public V | getIfAbsentPut(K key, Function0<? extends V> function)
Overrides org. Implements org. Get and return the value in the Map at the specified key. |
| public V | getIfAbsentPut(K key, V value)
Overrides org. Implements org. Get and return the value in the Map at the specified key. |
| public V | getIfAbsentPut(K key, Function<? super K, ? extends V> factory)
Overrides org. Implements org. Get and return the value in the Map at the specified key. |
| public <P> V | getIfAbsentPutWith(K key, Function<? super P, ? extends V> function, P parameter)
Overrides org. Implements org. Get and return the value in the Map at the specified key. |
| public V | getIfAbsentValue(K key, V value)
Overrides org. Implements org. Return the value in the Map that corresponds to the specified key, or if there is no value at the key, return |
| public <P> V | getIfAbsentWith(K key, Function<? super P, ? extends V> function, P parameter)
Overrides org. Implements org. Return the value in the Map that corresponds to the specified key, or if there is no value at the key, return the result of evaluating the specified function and parameter. |
| public int | hashCode()
Overrides java. Implements org. Follows the same general contract as |
| public <A> A | ifPresentApply(K key, Function<? super V, ? extends A> function)
Overrides org. Implements org. If there is a value in the Map that corresponds to the specified key return the result of applying the specified Function on the value, otherwise return null. |
| public boolean | isEmpty()
Overrides org. Implements org. Returns |
| public Iterator | iterator()
Overrides org. Implements java. Returns an iterator over elements of type |
| public Set | |
| public V | merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction)
Overrides default java. Implements org. A concurrent implementation of |
| public <K, V> MutableMap | newEmpty(int capacity)
Implements abstract org. Creates a new instance of the same type, using the given capacity and the default growth parameters. |
| public MutableMap | newEmpty()
Implements org. Creates a new instance of the same type, using the default capacity and growth parameters. |
| public static <NK, NV> ConcurrentMutableHashMap | newMap()
References Deprecated
ConcurrentMutableHashMap is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public static <NK, NV> ConcurrentMutableHashMap | newMap(int initialCapacity)
References Deprecated
ConcurrentMutableHashMap is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public static <NK, NV> ConcurrentMutableHashMap | newMap(int initialCapacity, float loadFactor, int concurrencyLevel)
References Deprecated
ConcurrentMutableHashMap is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public static <NK, NV> ConcurrentMutableHashMap | newMap(Map<NK, NV> map)
References Deprecated
ConcurrentMutableHashMap is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public boolean | notEmpty()
Overrides default org. The English equivalent of !this.isEmpty() |
| public V | put(K key, V value)
Implements java. Associates the specified value with the specified key in this map (optional operation). |
| public void | putAll(Map<? extends K, ? extends V> map)
Implements java. Copies all of the mappings from the specified map to this map (optional operation). |
| public V | putIfAbsent(K key, V value)
Overrides default java. Implements java. If the specified key is not already associated with a value, associates it with the given value. |
| public V | remove(Object key)
Implements java. Removes the mapping for a key from this map if it is present (optional operation). |
| public boolean | remove(Object key, Object value)
Overrides default java. Implements java. Removes the entry for a key only if currently mapped to a given value. |
| public V | removeKey(K key)
Implements org. Remove an entry from the map at the specified |
| public boolean | replace(K key, V oldValue, V newValue)
Overrides default java. Implements java. Replaces the entry for a key only if currently mapped to a given value. |
| public V | replace(K key, V value)
Overrides default java. Implements java. Replaces the entry for a key only if currently mapped to some value. |
| public int | size()
Implements org. Returns the number of key-value mappings in this map. |
| public ConcurrentMutableMap | tap(Procedure<? super V> procedure)
Overrides org. Implements org. Executes the Procedure for each value of the map and returns |
| public ImmutableMap | toImmutable()
Overrides org. Implements org. Returns an immutable copy of this map. |
| public String | toString()
Overrides org. Implements org. Returns a string with the keys and values of this map separated by commas with spaces and enclosed in curly braces. |
| public V | updateValue(K key, Function0<? extends V> factory, Function<? super V, ? extends V> function)
Overrides org. Implements org. Looks up the value associated with |
| public <P> V | updateValueWith(K key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter)
Overrides org. Implements org. Same as |
| public Collection | values()
Implements java. Returns a |
| public ConcurrentMutableHashMap | withAllKeyValueArguments(Pair<? extends K, ? extends V>... keyValues)
Overrides org. Implements org.
References Deprecated
ConcurrentMutableHashMap is deprecated or references (maybe indirectly) at least one deprecated element.
Convenience var-args version of withAllKeyValues |
| public ConcurrentMutableHashMap | withAllKeyValues(Iterable<? extends Pair<? extends K, ? extends V>> keyValues)
Overrides org. Implements org.
References Deprecated
ConcurrentMutableHashMap is deprecated or references (maybe indirectly) at least one deprecated element.
This method allows mutable, fixed size, and immutable maps the ability to add elements to their existing elements. |
| public ConcurrentMutableHashMap | withKeyValue(K key, V value)
Overrides org. Implements org.
References Deprecated
ConcurrentMutableHashMap is deprecated or references (maybe indirectly) at least one deprecated element.
This method allows mutable, fixed size, and immutable maps the ability to add elements to their existing elements. |
| public ConcurrentMutableHashMap | withoutAllKeys(Iterable<? extends K> keys)
Overrides org. Implements org.
References Deprecated
ConcurrentMutableHashMap is deprecated or references (maybe indirectly) at least one deprecated element.
This method allows mutable, fixed size, and immutable maps the ability to remove elements from their existing elements. |
| public ConcurrentMutableHashMap | withoutKey(K key)
Overrides org. Implements org.
References Deprecated
ConcurrentMutableHashMap is deprecated or references (maybe indirectly) at least one deprecated element.
This method allows mutable, fixed size, and immutable maps the ability to remove elements from their existing elements. |