edu.emory.mathcs.backport.java.util
Class AbstractList

java.lang.Object
  extended by java.util.AbstractCollection
      extended by java.util.AbstractList
          extended by edu.emory.mathcs.backport.java.util.AbstractList
All Implemented Interfaces:
java.lang.Iterable, java.util.Collection, java.util.List

public abstract class AbstractList
extends java.util.AbstractList

Overrides toArray() and toArray(Object[]) in AbstractCollection to provide implementations valid for concurrent lists.

Author:
Doug Lea, Dawid Kurzyniec

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
protected AbstractList()
          Sole constructor.
 
Method Summary
 java.lang.Object[] toArray()
           
 java.lang.Object[] toArray(java.lang.Object[] a)
           
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, 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, size
 

Constructor Detail

AbstractList

protected AbstractList()
Sole constructor. (For invocation by subclass constructors, typically implicit.)

Method Detail

toArray

public java.lang.Object[] toArray()
Specified by:
toArray in interface java.util.Collection
Specified by:
toArray in interface java.util.List
Overrides:
toArray in class java.util.AbstractCollection

toArray

public java.lang.Object[] toArray(java.lang.Object[] a)
Specified by:
toArray in interface java.util.Collection
Specified by:
toArray in interface java.util.List
Overrides:
toArray in class java.util.AbstractCollection