private static class Striped.CompactStriped<L> extends Striped.PowerOfTwoStriped<L>
Striped.LargeLazyStriped<L>, Striped.SmallLazyStriped<L>
Modifier and Type | Field and Description |
---|---|
private java.lang.Object[] |
array
Size is a power of two.
|
mask
Modifier | Constructor and Description |
---|---|
private |
CompactStriped(int stripes,
Supplier<L> supplier) |
Modifier and Type | Method and Description |
---|---|
L |
getAt(int index)
Returns the stripe at the specified index.
|
int |
size()
Returns the total number of stripes in this instance.
|
get, indexFor
bulkGet, custom, lazyWeakLock, lazyWeakReadWriteLock, lazyWeakSemaphore, lock, readWriteLock, semaphore