AbstractConcurrentMap
public abstract class AbstractConcurrentMapBase extends Object
Modifier and Type | Class | Description |
---|---|---|
static interface |
AbstractConcurrentMapBase.Entry<V> |
|
static class |
AbstractConcurrentMapBase.Segment |
Modifier and Type | Field | Description |
---|---|---|
protected static int |
MAXIMUM_CAPACITY |
|
protected AbstractConcurrentMapBase.Segment[] |
segments |
Constructor | Description |
---|---|
AbstractConcurrentMapBase(Object segmentInfo) |
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() |
protected static final int MAXIMUM_CAPACITY
protected final AbstractConcurrentMapBase.Segment[] segments
public AbstractConcurrentMapBase(Object segmentInfo)
protected abstract AbstractConcurrentMapBase.Segment createSegment(Object segmentInfo, int cap)
protected static <K> int hash(K key)
public AbstractConcurrentMapBase.Segment segmentFor(int hash)
public int fullSize()
public int size()
public Collection values()