public class ArrayWrappedInList
extends java.util.ArrayList
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
array |
protected int |
n
Arrays are fixed size; precompute.
|
Constructor and Description |
---|
ArrayWrappedInList(java.lang.Object array) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(int i) |
boolean |
isEmpty() |
java.util.Iterator |
iterator() |
int |
size() |
java.lang.Object[] |
toArray() |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, indexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, subList, toArray, trimToSize
protected java.lang.Object array
protected int n
public java.lang.Object get(int i)
get
in interface java.util.List
get
in class java.util.ArrayList
public int size()
size
in interface java.util.Collection
size
in interface java.util.List
size
in class java.util.ArrayList
public boolean isEmpty()
isEmpty
in interface java.util.Collection
isEmpty
in interface java.util.List
isEmpty
in class java.util.ArrayList
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection
toArray
in interface java.util.List
toArray
in class java.util.ArrayList
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
iterator
in interface java.util.List
iterator
in class java.util.ArrayList
Copyright ? 2006-2013 Terence Parr