[Java] Class AbstractConcurrentMap<K, V>
- org.codehaus.groovy.util.AbstractConcurrentMap
public abstract class AbstractConcurrentMap<K, V> extends AbstractConcurrentMapBase
Nested Class Summary
Modifiers | Name | Description |
---|---|---|
interface | AbstractConcurrentMap.Entry | |
static class | AbstractConcurrentMap.Segment |
Fields inherited from class | Fields |
---|---|
class AbstractConcurrentMapBase | MAXIMUM_CAPACITY, segments |
Constructor Summary
Constructor and description |
---|
AbstractConcurrentMap
(Object segmentInfo) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public V |
get(K key) | |
public Entry<K, V> |
getOrPut(K key, V value) | |
public void |
put(K key, V value) | |
public void |
remove(K key) | |
public Segment |
segmentFor(int hash) |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class AbstractConcurrentMapBase | createSegment, fullSize, hash, segmentFor, size, values |
Constructor Detail
public AbstractConcurrentMap(Object segmentInfo)
Method Detail
public V get(K key)
public Entry<K, V> getOrPut(K key, V value)
public void put(K key, V value)
public void remove(K key)
public Segment segmentFor(int hash)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/util/AbstractConcurrentMap.html