public abstract class DynamicArray extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DynamicArray.Byte |
static class |
DynamicArray.Double |
static class |
DynamicArray.Float |
static class |
DynamicArray.Generic |
static class |
DynamicArray.Int |
static class |
DynamicArray.Long |
static class |
DynamicArray.Short |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Object in) |
void |
add(java.lang.Object in,
int inOffset,
int len) |
void |
addAll(DynamicArray in) |
java.lang.Object |
asArray() |
void |
clear() |
static DynamicArray |
create(DataType type)
Create a DynamicArray with specified type
|
static DynamicArray |
create(DataType type,
int granularity)
Create a DynamicArray with specified type.
|
static DynamicArray |
create(int type)
Deprecated.
|
void |
get(java.lang.Object out,
int inOffset,
int outOffset,
int len) |
int |
getCapacity() |
int |
getSize() |
boolean |
isEmpty() |
void |
put(java.lang.Object in,
int inOffset,
int outOffset,
int len) |
void |
setSize(int size) |
public static DynamicArray create(DataType type, int granularity)
type
- DataType of the dynamic array object.granularity
- Accepted values go from 0 to 8 where lower value mean less memory used but more
allocation time where higher mean more memory used but less allocation time (default =
4).public static DynamicArray create(DataType type)
@Deprecated public static DynamicArray create(int type)
TypeUtil
constant)public void clear()
public boolean isEmpty()
public int getCapacity()
public int getSize()
public void setSize(int size)
public void addAll(DynamicArray in)
public void add(java.lang.Object in)
public void get(java.lang.Object out, int inOffset, int outOffset, int len)
public void add(java.lang.Object in, int inOffset, int len)
public void put(java.lang.Object in, int inOffset, int outOffset, int len)
public java.lang.Object asArray()