Top Description Constructors Methods
org.eclipse.collections.impl.collection.mutable

public Class UnmodifiableMutableCollection<T>

extends AbstractUnmodifiableMutableCollection<T>
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, java.util.Collection, org.eclipse.collections.api.collection.MutableCollection

An unmodifiable view of a collection.
See Also
MutableCollection#asUnmodifiable()

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
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.

protected Object
Inherited from org.eclipse.collections.impl.collection.mutable.AbstractUnmodifiableMutableCollection:
addaddAlladdAllIterableallSatisfyallSatisfyWithanySatisfyanySatisfyWithappendStringappendStringappendStringasLazyasSynchronizedasUnmodifiablechunkclearcollectcollectcollectBooleancollectBooleancollectBytecollectBytecollectCharcollectCharcollectDoublecollectDoublecollectFloatcollectFloatcollectIfcollectIfcollectIntcollectIntcollectLongcollectLongcollectShortcollectShortcollectWithcollectWithcontainscontainsAllcontainsAllArgumentscontainsAllIterablecontainsAnycontainsAnyIterablecontainsNonecontainsNoneIterablecountcountWithdetectdetectIfNonedetectOptionaldetectWithdetectWithIfNonedetectWithOptionaleachflatCollectflatCollectflatCollectBooleanflatCollectByteflatCollectCharflatCollectDoubleflatCollectFloatflatCollectIntflatCollectLongflatCollectShortforEachWithforEachWithIndexgetFirstgetLastgetMutableCollectiongetOnlygroupBygroupBygroupByEachgroupByEachgroupByUniqueKeygroupByUniqueKeyinjectIntoinjectIntoinjectIntoinjectIntoinjectIntoinjectIntoWithintoisEmptyiteratormakeStringmakeStringmakeStringmaxmaxmaxByminminminBynewEmptynoneSatisfynoneSatisfyWithnotEmptypartitionpartitionWithrejectrejectrejectWithrejectWithremoveremoveAllremoveAllIterableremoveIfremoveIfWithretainAllretainAllIterableselectselectselectAndRejectWithselectInstancesOfselectWithselectWithsizesumByDoublesumByFloatsumByIntsumByLongsumOfDoublesumOfFloatsumOfIntsumOfLongtaptoArraytoArraytoBagtoBiMaptoImmutabletoListtoMaptoMaptoSettoSortedBagtoSortedBagtoSortedListtoSortedListtoSortedMaptoSortedMaptoSortedMapBytoSortedSettoSortedSettoStringwithwithAllwithoutwithoutAllzipzipzipWithIndexzipWithIndex

Constructor Detail

UnmodifiableMutableCollectionback to summary
pack-priv UnmodifiableMutableCollection(MutableCollection<? extends T> collection)

Method Detail

ofback to summary
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.

writeReplaceback to summary
protected Object writeReplace()