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.
-
Method Summary
Modifier and Type Method Description static <E, C extends Collection<E>>
UnmodifiableMutableCollection<E>of(C collection)
This method will take a MutableCollection and wrap it directly in a UnmodifiableMutableCollection.Methods inherited from class org.eclipse.collections.impl.collection.mutable.AbstractUnmodifiableMutableCollection
add, addAll, addAllIterable, aggregateInPlaceBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, asSynchronized, asUnmodifiable, chunk, clear, collect, collect, collectBoolean, collectBoolean, collectByte, collectByte, collectChar, collectChar, collectDouble, collectDouble, collectFloat, collectFloat, collectIf, collectIf, collectInt, collectInt, collectLong, collectLong, collectShort, collectShort, collectWith, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, count, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, flatCollect, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, forEachWith, forEachWithIndex, getFirst, getLast, getOnly, groupBy, groupBy, groupByEach, groupByEach, groupByUniqueKey, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, injectIntoWith, into, isEmpty, iterator, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, newEmpty, noneSatisfy, noneSatisfyWith, notEmpty, partition, partitionWith, reject, reject, rejectWith, rejectWith, remove, removeAll, removeAllIterable, removeIf, removeIfWith, retainAll, retainAllIterable, select, select, selectAndRejectWith, selectInstancesOf, selectWith, selectWith, size, sumByDouble, sumByFloat, sumByInt, sumByLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, tap, toArray, toArray, toBag, toBiMap, toImmutable, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, toString, with, withAll, without, withoutAll, zip, zip, zipWithIndex, zipWithIndex
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
Methods inherited from interface org.eclipse.collections.api.collection.MutableCollection
aggregateBy, countBy, countByEach, countByWith, flatCollectWith
Methods inherited from interface org.eclipse.collections.api.RichIterable
aggregateBy, containsBy, countBy, countByEach, countByWith, flatCollectWith, forEach, getAny, groupByAndCollect, maxByOptional, maxOptional, maxOptional, minByOptional, minOptional, minOptional, reduce, reduceInPlace, reduceInPlace, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong
-
Method Details
-
of
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.
-