Package org.codehaus.groovy.util
Class AbstractConcurrentMapBase
java.lang.Object
org.codehaus.groovy.util.AbstractConcurrentMapBase
- Direct Known Subclasses:
AbstractConcurrentMap
public abstract class AbstractConcurrentMapBase extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AbstractConcurrentMapBase.Entry<V>
static class
AbstractConcurrentMapBase.Segment
-
Field Summary
Fields Modifier and Type Field Description protected static int
MAXIMUM_CAPACITY
protected AbstractConcurrentMapBase.Segment[]
segments
-
Constructor Summary
Constructors Constructor Description AbstractConcurrentMapBase(Object segmentInfo)
-
Method Summary
Modifier and Type Method Description protected abstract AbstractConcurrentMapBase.Segment
createSegment(Object segmentInfo, int cap)
int
fullSize()
protected static <K> int
hash(K key)
AbstractConcurrentMapBase.Segment
segmentFor(int hash)
int
size()
Collection
values()
-
Field Details
-
MAXIMUM_CAPACITY
protected static final int MAXIMUM_CAPACITY- See Also:
- Constant Field Values
-
segments
-
-
Constructor Details
-
Method Details
-
createSegment
-
hash
protected static <K> int hash(K key) -
segmentFor
-
fullSize
public int fullSize() -
size
public int size() -
values
-