com.bulletphysics.util
Class ObjectArrayList<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<T>
com.bulletphysics.util.ObjectArrayList<T>
- All Implemented Interfaces:
- Iterable<T>, Collection<T>, List<T>, RandomAccess
public class ObjectArrayList<T>
- extends AbstractList<T>
- implements RandomAccess
ObjectArrayList
public ObjectArrayList()
ObjectArrayList
public ObjectArrayList(int initialCapacity)
add
public boolean add(T value)
- Specified by:
add
in interface Collection<T>
- Specified by:
add
in interface List<T>
- Overrides:
add
in class AbstractList<T>
remove
public T remove(int index)
- Specified by:
remove
in interface List<T>
- Overrides:
remove
in class AbstractList<T>
get
public T get(int index)
- Specified by:
get
in interface List<T>
- Specified by:
get
in class AbstractList<T>
set
public T set(int index,
T value)
- Specified by:
set
in interface List<T>
- Overrides:
set
in class AbstractList<T>
size
public int size()
- Specified by:
size
in interface Collection<T>
- Specified by:
size
in interface List<T>
- Specified by:
size
in class AbstractCollection<T>
capacity
public int capacity()
clear
public void clear()
- Specified by:
clear
in interface Collection<T>
- Specified by:
clear
in interface List<T>
- Overrides:
clear
in class AbstractList<T>
indexOf
public int indexOf(Object o)
- Specified by:
indexOf
in interface List<T>
- Overrides:
indexOf
in class AbstractList<T>