public class GenericWholeArrray extends Object
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_BIT |
static int |
TYPE_BYTE |
static int |
TYPE_CHAR |
static int |
TYPE_INT |
static int |
TYPE_SHORT |
Constructor and Description |
---|
GenericWholeArrray(DataInputStream dis,
int stored) |
GenericWholeArrray(GenericWholeArrray a) |
GenericWholeArrray(int type,
int length) |
Modifier and Type | Method and Description |
---|---|
void |
alloc(int length) |
int |
elementAt(int index) |
int |
getType() |
int |
length() |
static int[] |
realloc(int[] array,
int newLength,
int numberOfElementsToCpy) |
void |
realloc(int newLength,
int numberOfElementsToCpy) |
void |
save(DataOutputStream dos,
int stored) |
void |
setElement(int index,
int value) |
public static final int TYPE_BYTE
public static final int TYPE_SHORT
public static final int TYPE_INT
public static final int TYPE_CHAR
public static final int TYPE_BIT
public GenericWholeArrray(int type, int length)
public GenericWholeArrray(DataInputStream dis, int stored) throws IOException
IOException
public GenericWholeArrray(GenericWholeArrray a)
public void save(DataOutputStream dos, int stored) throws IOException
IOException
public void alloc(int length)
public void realloc(int newLength, int numberOfElementsToCpy)
public static int[] realloc(int[] array, int newLength, int numberOfElementsToCpy)
public void setElement(int index, int value)
public int elementAt(int index)
public int length()
public int getType()