public static final class PersistentHashSet.MutableHashSet<E> extends UnmodSet.AbstractUnmodSet<E> implements MutableUnsortedSet<E>
UnmodSet.AbstractUnmodSet<T>UnmodIterable.AbstractUnmodIterable<T>| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Object key)
Returns true if the set contains the given item.
|
PersistentHashSet<E> |
immutable()
Returns a immutable version of this (maybe mutable) set.
|
UnmodIterator<E> |
iterator()
Iterates over contents with no guarantees about their ordering.
|
PersistentHashSet.MutableHashSet<E> |
put(E val)
Adds an element, returning a modified version of the set (leaving the original set unchanged).
|
int |
size()
Returns the number of items in this iterable.
|
PersistentHashSet.MutableHashSet<E> |
without(E key)
Removes the given item, returning a modified version of the set (leaving the original set
unchanged).
|
equalshashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitmutable, unionadd, addAll, clear, containsAll, isEmpty, remove, removeAll, removeIf, retainAll, toArray, toArrayconcat, drop, filter, flatMap, foldLeft, foldLeft, hash, hashCode, head, map, precat, take, takeWhile, toStringtoImList, toImMap, toImSet, toImSortedMap, toImSortedSet, toMutableList, toMutableMap, toMutableSet, toMutableSortedMap, toMutableSortedSetequals, hashCode, spliteratorparallelStream, streampublic int size()
Sizedpublic PersistentHashSet.MutableHashSet<E> put(E val)
MutableUnsortedSetput in interface ImSet<E>put in interface ImUnsortedSet<E>put in interface MutableUnsortedSet<E>val - the element to add to this setpublic UnmodIterator<E> iterator()
UnmodSetpublic boolean contains(Object key)
UnmodSetpublic PersistentHashSet.MutableHashSet<E> without(E key)
MutableUnsortedSetwithout in interface ImSet<E>without in interface ImUnsortedSet<E>without in interface MutableUnsortedSet<E>public PersistentHashSet<E> immutable()
ImUnsortedSetimmutable in interface ImUnsortedSet<E>Copyright © 2017. All rights reserved.