public class FreeArray<T>
extends java.lang.Object
implements java.lang.Iterable<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
FreeArray.FreeArrayIterable<T> |
static class |
FreeArray.FreeArrayIterator<T> |
| Modifier and Type | Field and Description |
|---|---|
FreeElement<T>[] |
items |
int |
length |
int |
nextFreeIndex |
int |
totalItems |
| Modifier and Type | Method and Description |
|---|---|
int |
add(T item) |
void |
clear() |
T |
get(int index) |
java.util.Iterator<T> |
iterator() |
T |
remove(int index) |
protected FreeElement<T>[] |
resize(int newSize) |
public FreeElement<T>[] items
public int length
public int totalItems
public int nextFreeIndex