Package org.codehaus.groovy.util
Class AbstractConcurrentMap<K,V>
- java.lang.Object
-
- org.codehaus.groovy.util.AbstractConcurrentMapBase
-
- org.codehaus.groovy.util.AbstractConcurrentMap<K,V>
-
- Direct Known Subclasses:
ManagedConcurrentMap
public abstract class AbstractConcurrentMap<K,V> extends AbstractConcurrentMapBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AbstractConcurrentMap.Entry<K,V>
static class
AbstractConcurrentMap.Segment<K,V>
-
Field Summary
-
Fields inherited from class org.codehaus.groovy.util.AbstractConcurrentMapBase
MAXIMUM_CAPACITY, segments
-
-
Constructor Summary
Constructors Constructor Description AbstractConcurrentMap(Object segmentInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
get(K key)
AbstractConcurrentMap.Entry<K,V>
getOrPut(K key, V value)
void
put(K key, V value)
void
remove(K key)
AbstractConcurrentMap.Segment
segmentFor(int hash)
-
Methods inherited from class org.codehaus.groovy.util.AbstractConcurrentMapBase
createSegment, fullSize, hash, size, values
-
-
-
-
Constructor Detail
-
AbstractConcurrentMap
public AbstractConcurrentMap(Object segmentInfo)
-
-
Method Detail
-
segmentFor
public AbstractConcurrentMap.Segment segmentFor(int hash)
- Overrides:
segmentFor
in classAbstractConcurrentMapBase
-
getOrPut
public AbstractConcurrentMap.Entry<K,V> getOrPut(K key, V value)
-
remove
public void remove(K key)
-
-