public final class RunGroupContext extends Object
Modifier and Type | Field and Description |
---|---|
static ThreadLocal<RunGroupContext> |
CONTEXT
The
ThreadLocal object used for getting and setting the thread RunGroupContext |
Constructor and Description |
---|
RunGroupContext(int sortCount,
int startingLength)
Creates a RunGroupContext with the specified number of sorts and a base length
|
Modifier and Type | Method and Description |
---|---|
int |
getSortCount()
The number of sorts in the current run group
|
int |
getSortNumber()
The current sorting algorithm index
|
int |
getStartingLength()
The base length for the current run group
|
int |
nextSort()
Increments and returns the new sorting algorithm index
|
public static final ThreadLocal<RunGroupContext> CONTEXT
ThreadLocal
object used for getting and setting the thread RunGroupContextpublic RunGroupContext(int sortCount, int startingLength)
sortCount
- See getSortCount()
startingLength
- See getStartingLength()
public int getSortCount()
public int getStartingLength()
public int getSortNumber()
public int nextSort()
getSortNumber()
Copyright © 2024. All rights reserved.