public final class LongVector
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected long[] |
data
the backing array.
|
static int |
defaultInitCap |
protected Growth |
growth
growth strategy.
|
protected int |
size
size as in a java.util.Vector.
|
Constructor and Description |
---|
LongVector() |
LongVector(Growth initGrowth) |
LongVector(Growth initGrowth,
int initCap) |
LongVector(int initCap) |
Modifier and Type | Method and Description |
---|---|
void |
add(long x) |
void |
clear() |
static void |
copy(LongVector src,
int srcPos,
LongVector dst,
int dstPos,
int len) |
void |
ensureCapacity(int desiredCap) |
void |
ensureSize(int sz) |
long |
get(int idx) |
void |
set(int idx,
long x) |
void |
setSize(int sz) |
int |
size() |
void |
squeeze() |
public static final int defaultInitCap
protected int size
protected long[] data
protected Growth growth
public LongVector(Growth initGrowth, int initCap)
public LongVector(Growth initGrowth)
public LongVector(int initCap)
public LongVector()
public void add(long x)
public long get(int idx)
public void set(int idx, long x)
public void squeeze()
public void setSize(int sz)
public void clear()
public int size()
public void ensureSize(int sz)
public void ensureCapacity(int desiredCap)
public static void copy(LongVector src, int srcPos, LongVector dst, int dstPos, int len)