public class NaivePersistentSet<K> extends PersistentSet<K>
Modifier and Type | Method and Description |
---|---|
static <K> PersistentSet<K> |
create() |
Iterator<K> |
iterator() |
int |
size() |
PersistentSet<K> |
with(K key) |
PersistentSet<K> |
without(K key) |
equals, hashCode, removeAll
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
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()
size
in interface Collection<K>
size
in interface Set<K>
size
in class AbstractCollection<K>
Copyright © 2009–2014 Google. All rights reserved.