org.compass.core.util.backport.java.util
Class AbstractSequentialList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList
              extended by org.compass.core.util.backport.java.util.AbstractSequentialList
All Implemented Interfaces:
Iterable, Collection, List

public abstract class AbstractSequentialList
extends AbstractSequentialList

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 AbstractSequentialList()
          Sole constructor.
 
Method Summary
 Object[] toArray()
           
 Object[] toArray(Object[] a)
           
 
Methods inherited from class java.util.AbstractSequentialList
add, addAll, get, iterator, listIterator, remove, set
 
Methods inherited from class java.util.AbstractList
add, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, 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

AbstractSequentialList

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

Method Detail

toArray

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

toArray

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


Copyright (c) 2004-2006 The Compass Project.