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:
- Externalizable, Serializable, Iterable<T>, Collection<T>, List<T>, RandomAccess
public final class ObjectArrayList<T>
- extends AbstractList<T>
- implements RandomAccess, Externalizable
- See Also:
- Serialized Form
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>
add
public void add(int index,
T value)
- 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>
removeQuick
public void removeQuick(int index)
get
public T get(int index)
- Specified by:
get
in interface List<T>
- Specified by:
get
in class AbstractList<T>
getQuick
public T getQuick(int index)
set
public T set(int index,
T value)
- Specified by:
set
in interface List<T>
- Overrides:
set
in class AbstractList<T>
setQuick
public void setQuick(int index,
T value)
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>
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Throws:
IOException
ClassNotFoundException