org.compass.core.util.backport.java.util
Class AbstractSet
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet
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. |
| Methods inherited from class java.util.AbstractCollection |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, retainAll, size, toString |
AbstractSet
protected AbstractSet()
- Sole constructor. (For invocation by subclass constructors, typically
implicit.)
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.