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:
java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>, java.util.RandomAccess

public class ObjectArrayList<T>
extends java.util.AbstractList<T>
implements java.util.RandomAccess


Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ObjectArrayList()
           
 
Method Summary
 boolean add(T value)
           
 int capacity()
           
 void clear()
           
 T get(int index)
           
 int indexOf(java.lang.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, removeRange, 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
clone, finalize, 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()
Method Detail

add

public boolean add(T value)
Specified by:
add in interface java.util.Collection<T>
Specified by:
add in interface java.util.List<T>
Overrides:
add in class java.util.AbstractList<T>

remove

public T remove(int index)
Specified by:
remove in interface java.util.List<T>
Overrides:
remove in class java.util.AbstractList<T>

get

public T get(int index)
Specified by:
get in interface java.util.List<T>
Specified by:
get in class java.util.AbstractList<T>

set

public T set(int index,
             T value)
Specified by:
set in interface java.util.List<T>
Overrides:
set in class java.util.AbstractList<T>

size

public int size()
Specified by:
size in interface java.util.Collection<T>
Specified by:
size in interface java.util.List<T>
Specified by:
size in class java.util.AbstractCollection<T>

capacity

public int capacity()

clear

public void clear()
Specified by:
clear in interface java.util.Collection<T>
Specified by:
clear in interface java.util.List<T>
Overrides:
clear in class java.util.AbstractList<T>

indexOf

public int indexOf(java.lang.Object o)
Specified by:
indexOf in interface java.util.List<T>
Overrides:
indexOf in class java.util.AbstractList<T>