final class NaivePersistentSet<K> extends PersistentSet<K>
Modifier | Constructor and Description |
---|---|
private |
NaivePersistentSet(java.util.Set<K> s) |
Modifier and Type | Method and Description |
---|---|
static <K> PersistentSet<K> |
create() |
java.util.Iterator<K> |
iterator() |
int |
size() |
PersistentSet<K> |
with(K key) |
PersistentSet<K> |
without(K key) |
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
private final java.util.Set<K> set
private NaivePersistentSet(java.util.Set<K> s)
public static <K> PersistentSet<K> create()
public PersistentSet<K> with(K key)
with
in class PersistentSet<K>
public PersistentSet<K> without(K key)
without
in class PersistentSet<K>
public int size()