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
|
equals
hashCode, toString
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
union
add, addAll, clear, containsAll, isEmpty, remove, removeAll, removeIf, retainAll, toArray, toArray
concat, drop, dropWhile, filter, flatMap, fold, foldUntil, hash, head, map, precat, take, takeWhile, toString
toImList, toImMap, toImRrbt, toImSet, toImSortedMap, toImSortedSet, toMutableList, toMutableMap, toMutableRrbt, toMutableSet, toMutableSortedMap, toMutableSortedSet
equals, hashCode, spliterator
parallelStream, stream
public int size()
Sized
public PersistentHashSet.MutableHashSet<E> put(E val)
MutableSet
public UnmodIterator<E> iterator()
UnmodSet
public boolean contains(Object key)
UnmodSet
public PersistentHashSet.MutableHashSet<E> without(E key)
MutableSet
public PersistentHashSet<E> immutable()
MutableSet
immutable
in interface MutableSet<E>
Copyright © 2018. All rights reserved.