public interface ImSet<E> extends UnmodSet<E>
UnmodSet.AbstractUnmodSet<T>
UnmodIterable.AbstractUnmodIterable<T>
Modifier and Type | Method and Description |
---|---|
ImSet<E> |
put(E e)
Adds an element, returning a modified version of the set (leaving the original set unchanged).
|
default ImSet<E> |
union(Iterable<? extends E> iter) |
ImSet<E> |
without(E key)
Removes the given item, returning a modified version of the set (leaving the original set
unchanged).
|
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, removeIf, retainAll, toArray, toArray
concat, drop, filter, flatMap, foldLeft, foldLeft, hash, hashCode, head, map, precat, take, takeWhile, toString
toImList, toImMap, toImSet, toImSortedMap, toImSortedSet, toMutableList, toMutableMap, toMutableSet, toMutableSortedMap, toMutableSortedSet
equals, hashCode, size, spliterator
parallelStream, stream
ImSet<E> put(E e)
e
- the element to add to this setImSet<E> without(E key)
Copyright © 2017. All rights reserved.