org.apache.commons.collections.set
Class AbstractSetDecorator<E>
java.lang.Object
org.apache.commons.collections.collection.AbstractCollectionDecorator<E>
org.apache.commons.collections.set.AbstractSetDecorator<E>
- All Implemented Interfaces:
- Iterable<E>, Collection<E>, Set<E>
- Direct Known Subclasses:
- AbstractSerializableSetDecorator, AbstractSortedSetDecorator, UnmodifiableEntrySet
public abstract class AbstractSetDecorator<E>
- extends AbstractCollectionDecorator<E>
- implements Set<E>
Decorates another Set
to provide additional behaviour.
Methods are forwarded directly to the decorated set.
- Since:
- Commons Collections 3.0
- Version:
- $Revision: 1.1.1.1 $ $Date: 2005/05/23 04:36:18 $
- Author:
- Matt Hall, John Watkinson, Stephen Colebourne
Method Summary |
protected Set<E> |
getSet()
Gets the set being decorated. |
Methods inherited from class org.apache.commons.collections.collection.AbstractCollectionDecorator |
add, addAll, clear, contains, containsAll, equals, getCollection, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString |
Methods inherited from interface java.util.Set |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
AbstractSetDecorator
protected AbstractSetDecorator()
- Constructor only used in deserialization, do not use otherwise.
- Since:
- Commons Collections 3.1
AbstractSetDecorator
protected AbstractSetDecorator(Set<E> set)
- Constructor that wraps (not copies).
- Parameters:
set
- the set to decorate, must not be null
- Throws:
IllegalArgumentException
- if set is null
getSet
protected Set<E> getSet()
- Gets the set being decorated.
- Returns:
- the decorated set
Copyright © 2005-2005 Apache Software Foundation, Matt Hall, John Watkinson. All Rights Reserved.