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