private abstract static class Striped.PowerOfTwoStriped<L> extends Striped<L>
Striped.LargeLazyStriped<L>, Striped.SmallLazyStriped<L>| Modifier and Type | Field and Description |
|---|---|
(package private) int |
mask
Capacity (power of two) minus one, for fast mod evaluation
|
| Constructor and Description |
|---|
PowerOfTwoStriped(int stripes) |
| Modifier and Type | Method and Description |
|---|---|
L |
get(java.lang.Object key)
Returns the stripe that corresponds to the passed key.
|
(package private) int |
indexFor(java.lang.Object key)
Returns the index to which the given key is mapped, so that getAt(indexFor(key)) == get(key).
|
bulkGet, custom, getAt, lazyWeakLock, lazyWeakReadWriteLock, lazyWeakSemaphore, lock, readWriteLock, semaphore, sizefinal int indexFor(java.lang.Object key)
Striped