E - the class of the elements of this list.static class CollectionsExt.ImmutableMultiSet<E> extends CollectionsExt.AbstractImmutableMultiSet<MultiSet<E>,E> implements MultiSet<E>
MultiSet.Multiplicity| Modifier and Type | Field and Description |
|---|---|
private MultiSet<E> |
mSet
The enclosed multi-set containing the elements of this multi-set.
|
| Constructor and Description |
|---|
ImmutableMultiSet(MultiSet<E> mSet)
Creates a new empty
ImmutableMultiSet
which equals mSet but cannot be modified
neither directly nor via its iterator. |
| Modifier and Type | Method and Description |
|---|---|
MultiSet<E> |
unrestricted()
Returns the underlying multiset without the restrictions
imposed by this
CollectionsExt.ImmutableCollection. |
add, addAll, addAll, addWithMult, addWithMult, allowedModifications, clear, contains, containsAll, equals, getMap, getMaxMult, getMultiplicity, getMultiplicityObj, getObjWithMaxMult, getSet, getSetWithMults, hashCode, isEmpty, iterator, remove, removeAll, removeWithMult, removeWithMult, retainAll, setMultiplicity, size, sizeWithMult, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, addAll, addWithMult, addWithMult, clear, contains, containsAll, equals, getMap, getMaxMult, getMultiplicity, getMultiplicityObj, getObjWithMaxMult, getSet, getSetWithMults, hashCode, isEmpty, iterator, remove, removeAll, removeWithMult, removeWithMult, retainAll, setMultiplicity, size, sizeWithMult, toArray, toArray, toStringforEach, spliteratorImmutableMultiSet(MultiSet<E> mSet)
ImmutableMultiSet
which equals mSet but cannot be modified
neither directly nor via its iterator.
yNullPointerException - if coll==null.public MultiSet<E> unrestricted()
CollectionsExt.AbstractImmutableMultiSetCollectionsExt.ImmutableCollection.
Note that the result
may still throw UnsupportedOperationExceptions
depending on the implementation.unrestricted in class CollectionsExt.AbstractImmutableMultiSet<MultiSet<E>,E>Copyright © 2012–2018 Simuline Organization (l2r). All rights reserved.