public final class Permutation extends Object
Modifier and Type | Field and Description |
---|---|
protected int[] |
data
the backing array.
|
static int |
defaultInitCap |
protected Growth |
growth
growth strategy.
|
protected IntVector |
inverse
the size of the inverse vector == next range value to be assigned.
|
Constructor and Description |
---|
Permutation() |
Permutation(Growth initGrowth) |
Permutation(Growth initGrowth,
int initCap) |
Permutation(int initCap) |
Modifier and Type | Method and Description |
---|---|
void |
add(int x) |
void |
clear() |
void |
ensureCapacity(int desiredCap) |
int |
get(int x) |
int |
inverseGet(int v) |
int |
rangeSize() |
void |
set(int x,
int v) |
public static final int defaultInitCap
protected int[] data
protected Growth growth
protected final IntVector inverse