Package org.jctools.queues
Class LinkedArrayQueueUtil
java.lang.Object
org.jctools.queues.LinkedArrayQueueUtil
This is used for method substitution in the LinkedArray classes code generation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
static long
modifiedCalcCircularRefElementOffset
(long index, long mask) This method assumes index is actually (index << 1) because lower bit is used for resize.static long
nextArrayOffset
(Object[] curr)
-
Constructor Details
-
LinkedArrayQueueUtil
public LinkedArrayQueueUtil()
-
-
Method Details
-
length
-
modifiedCalcCircularRefElementOffset
public static long modifiedCalcCircularRefElementOffset(long index, long mask) This method assumes index is actually (index << 1) because lower bit is used for resize. This is compensated for by reducing the element shift. The computation is constant folded, so there's no cost. -
nextArrayOffset
-