abstract class PersistentSet<K>
extends java.util.AbstractSet<K>
Modifier and Type | Field and Description |
---|---|
private static PersistentSet |
EMPTY |
Constructor and Description |
---|
PersistentSet() |
Modifier and Type | Method and Description |
---|---|
static <K> PersistentSet<K> |
create() |
abstract PersistentSet<K> |
with(K key) |
abstract PersistentSet<K> |
without(K key) |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, retainAll, size, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
private static PersistentSet EMPTY
public abstract PersistentSet<K> with(K key)
public abstract PersistentSet<K> without(K key)
public static <K> PersistentSet<K> create()