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

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet
          extended by org.compass.core.util.backport.java.util.AbstractSet
All Implemented Interfaces:
Iterable, Collection, Set
Direct Known Subclasses:
ConcurrentHashMap.EntrySet, ConcurrentHashMap.KeySet, ConcurrentSkipListMap.ConcurrentSkipListSubMap.EntrySetView, ConcurrentSkipListMap.ConcurrentSkipListSubMap.KeySetView, ConcurrentSkipListMap.EntrySet, ConcurrentSkipListMap.KeySet, ConcurrentSkipListSet, ConcurrentSkipListSet.ConcurrentSkipListSubSet

public abstract class AbstractSet
extends AbstractSet

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

Author:
Doug Lea, Dawid Kurzyniec

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

Constructor Detail

AbstractSet

protected AbstractSet()
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 Set
Overrides:
toArray in class AbstractCollection

toArray

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


Copyright (c) 2004-2006 The Compass Project.