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

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byedu.emory.mathcs.backport.java.util.AbstractCollection
All Implemented Interfaces:
java.util.Collection
Direct Known Subclasses:
AbstractQueue, ArrayDeque

public abstract class AbstractCollection
extends java.util.AbstractCollection

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

Author:
Doug Lea, Dawid Kurzyniec

Constructor Summary
protected AbstractCollection()
          Sole constructor.
 
Method Summary
 java.lang.Object[] toArray()
           
 java.lang.Object[] toArray(java.lang.Object[] a)
           
 
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Constructor Detail

AbstractCollection

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

Method Detail

toArray

public java.lang.Object[] toArray()

toArray

public java.lang.Object[] toArray(java.lang.Object[] a)