public static final class PersistentHashSet.MutableHashSet<E> extends AbstractUnmodSet<E> implements MutableSet<E>
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Object key)
Returns true if the set contains the given item.
|
PersistentHashSet<E> |
immutable()
Returns an immutable version of this immutable set.
|
UnmodIterator<E> |
iterator()
Iterates over contents with no guarantees about their ordering.
|
PersistentHashSet.MutableHashSet<E> |
put(E val)
Adds an element.
|
int |
size()
Returns the number of items in this collection or iterable.
|
PersistentHashSet.MutableHashSet<E> |
without(E key)
Removes this key from the set
|
equalshashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitunionadd, addAll, clear, containsAll, isEmpty, remove, removeAll, removeIf, retainAll, toArray, toArrayconcat, drop, dropWhile, filter, flatMap, fold, foldUntil, hash, head, map, precat, take, takeWhile, toStringtoImList, toImMap, toImRrbt, toImSet, toImSortedMap, toImSortedSet, toMutableList, toMutableMap, toMutableRrbt, toMutableSet, toMutableSortedMap, toMutableSortedSetequals, hashCode, spliteratorparallelStream, streampublic int size()
Sizedpublic PersistentHashSet.MutableHashSet<E> put(E val)
MutableSetpublic UnmodIterator<E> iterator()
UnmodSetpublic boolean contains(Object key)
UnmodSetpublic PersistentHashSet.MutableHashSet<E> without(E key)
MutableSetpublic PersistentHashSet<E> immutable()
MutableSetimmutable in interface MutableSet<E>Copyright © 2019. All rights reserved.