Package | Description |
---|---|
org.infinispan.commons.util.concurrent.jdk8backported |
Modifier and Type | Method and Description |
---|---|
V |
EquivalentConcurrentHashMapV8.computeIfAbsent(K key,
EquivalentConcurrentHashMapV8.Fun<? super K,? extends V> mappingFunction)
If the specified key is not already associated with a value,
attempts to compute its value using the given mapping function
and enters it into this map unless
null . |
<U> void |
EquivalentConcurrentHashMapV8.forEachEntry(long parallelismThreshold,
EquivalentConcurrentHashMapV8.Fun<Map.Entry<K,V>,? extends U> transformer,
EquivalentConcurrentHashMapV8.Action<? super U> action)
Performs the given action for each non-null transformation
of each entry.
|
<U> void |
EquivalentConcurrentHashMapV8.forEachKey(long parallelismThreshold,
EquivalentConcurrentHashMapV8.Fun<? super K,? extends U> transformer,
EquivalentConcurrentHashMapV8.Action<? super U> action)
Performs the given action for each non-null transformation
of each key.
|
<U> void |
EquivalentConcurrentHashMapV8.forEachValue(long parallelismThreshold,
EquivalentConcurrentHashMapV8.Fun<? super V,? extends U> transformer,
EquivalentConcurrentHashMapV8.Action<? super U> action)
Performs the given action for each non-null transformation
of each value.
|
<U> U |
EquivalentConcurrentHashMapV8.reduceEntries(long parallelismThreshold,
EquivalentConcurrentHashMapV8.Fun<Map.Entry<K,V>,? extends U> transformer,
EquivalentConcurrentHashMapV8.BiFun<? super U,? super U,? extends U> reducer)
Returns the result of accumulating the given transformation
of all entries using the given reducer to combine values,
or null if none.
|
<U> U |
EquivalentConcurrentHashMapV8.reduceKeys(long parallelismThreshold,
EquivalentConcurrentHashMapV8.Fun<? super K,? extends U> transformer,
EquivalentConcurrentHashMapV8.BiFun<? super U,? super U,? extends U> reducer)
Returns the result of accumulating the given transformation
of all keys using the given reducer to combine values, or
null if none.
|
<U> U |
EquivalentConcurrentHashMapV8.reduceValues(long parallelismThreshold,
EquivalentConcurrentHashMapV8.Fun<? super V,? extends U> transformer,
EquivalentConcurrentHashMapV8.BiFun<? super U,? super U,? extends U> reducer)
Returns the result of accumulating the given transformation
of all values using the given reducer to combine values, or
null if none.
|
<U> U |
EquivalentConcurrentHashMapV8.searchEntries(long parallelismThreshold,
EquivalentConcurrentHashMapV8.Fun<Map.Entry<K,V>,? extends U> searchFunction)
Returns a non-null result from applying the given search
function on each entry, or null if none.
|
<U> U |
EquivalentConcurrentHashMapV8.searchKeys(long parallelismThreshold,
EquivalentConcurrentHashMapV8.Fun<? super K,? extends U> searchFunction)
Returns a non-null result from applying the given search
function on each key, or null if none.
|
<U> U |
EquivalentConcurrentHashMapV8.searchValues(long parallelismThreshold,
EquivalentConcurrentHashMapV8.Fun<? super V,? extends U> searchFunction)
Returns a non-null result from applying the given search
function on each value, or null if none.
|
Copyright © 2016 JBoss, a division of Red Hat. All rights reserved.