E - the class of the elements of this set.public static final class CollectionsExt.ImmutableSet<E> extends CollectionsExt.AbstractImmutableCollection<Set<E>,E> implements Set<E>
| Modifier and Type | Field and Description |
|---|---|
private Set<E> |
set
The enclosed set containing the elements of this set.
|
| Constructor and Description |
|---|
ImmutableSet(Set<CollectionsExt.Modification> mods,
Set<E> set) |
ImmutableSet(Set<E> set) |
| Modifier and Type | Method and Description |
|---|---|
Set<E> |
unrestricted()
Returns the underlying set without the restrictions
imposed by this
CollectionsExt.ImmutableCollection. |
add, addAll, allowedModifications, allowModification, allowModifications, clear, iterator, remove, removeAll, removeIf, retainAll, size, toStringcontains, containsAll, isEmpty, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArrayparallelStream, removeIf, streamImmutableSet(Set<CollectionsExt.Modification> mods, Set<E> set)
public Set<E> unrestricted()
CollectionsExt.AbstractImmutableCollectionCollectionsExt.ImmutableCollection.
Note that the result
may still throw UnsupportedOperationExceptions
depending on the implementation.unrestricted in class CollectionsExt.AbstractImmutableCollection<Set<E>,E>Copyright © 2012–2018 Simuline Organization (l2r). All rights reserved.