com.bulletphysics.util
Class ObjectArrayList<T>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<T>
          extended by 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

Constructor Summary
ObjectArrayList()
           
ObjectArrayList(int initialCapacity)
           
 
Method Summary
 void add(int index, T value)
           
 boolean add(T value)
           
 int capacity()
           
 void clear()
           
 T get(int index)
           
 T getQuick(int index)
           
 int indexOf(Object o)
           
 void readExternal(ObjectInput in)
           
 T remove(int index)
           
 void removeQuick(int index)
           
 T set(int index, T value)
           
 void setQuick(int index, T value)
           
 int size()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.util.AbstractList
addAll, equals, hashCode, iterator, lastIndexOf, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

ObjectArrayList

public ObjectArrayList()

ObjectArrayList

public ObjectArrayList(int initialCapacity)
Method Detail

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