Class UnmodifiableMutableCollection<T>

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

public class UnmodifiableMutableCollection<T>
extends AbstractUnmodifiableMutableCollection<T>
implements Serializable
An unmodifiable view of a collection.
See Also:
MutableCollection.asUnmodifiable(), Serialized Form
  • Method Details

    • of

      public static <E,​ C extends Collection<E>> UnmodifiableMutableCollection<E> of​(C collection)
      This method will take a MutableCollection and wrap it directly in a UnmodifiableMutableCollection. It will take any other non-Eclipse-Collections collection and first adapt it will a CollectionAdapter, and then return a UnmodifiableMutableCollection that wraps the adapter.