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:
Iterable<T>, Collection<T>, List<T>, RandomAccess

public class ObjectArrayList<T>
extends AbstractList<T>
implements RandomAccess


Constructor Summary
ObjectArrayList()
           
ObjectArrayList(int initialCapacity)
           
 
Method Summary
 boolean add(T value)
           
 int capacity()
           
 void clear()
           
 T get(int index)
           
 int indexOf(Object o)
           
 T remove(int index)
           
 T set(int index, T value)
           
 int size()
           
 
Methods inherited from class java.util.AbstractList
add, 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>

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>