Class CollectionAdapter<T>

java.lang.Object
org.eclipse.collections.impl.collection.mutable.AbstractCollectionAdapter<T>
org.eclipse.collections.impl.collection.mutable.CollectionAdapter<T>
All Implemented Interfaces:
Serializable, Iterable<T>, Collection<T>, MutableCollection<T>, InternalIterable<T>, RichIterable<T>

public final class CollectionAdapter<T> extends AbstractCollectionAdapter<T> implements Serializable
This class provides a MutableCollection interface wrapper around a JDK Collections Collection interface instance. All the MutableCollection interface methods are supported in addition to the JDK Collection interface methods.

To create a new instance that wraps a collection with the MutableSet interface, use the wrapSet(Iterable) factory method. To create a new instance that wraps a collection with the MutableList interface, use the wrapList(Iterable) factory method. To wrap a collection with the MutableCollection interface alone, use the adapt(Collection) factory method.

See Also: