- java.lang.Object
-
- swim.collections.HashTrieSet<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(T elem)booleanaddAll(Collection<? extends T> elems)HashTrieSet<T>added(Collection<? extends T> elems)HashTrieSet<T>added(T elem)voidclear()booleancontains(Object elem)booleancontainsAll(Collection<?> elems)<U> Output<U>debug(Output<U> output)Writes a developer readable, debug-formatted string representation of this object tooutput.static <T> HashTrieSet<T>empty()booleanequals(Object other)static <T> HashTrieSet<T>from(Iterable<? extends T> elems)inthashCode()Thead()booleanisEmpty()Iterator<T>iterator()HashTrieSet<T>merged(HashTrieSet<T> elems)Tnext(Object elem)static <T> HashTrieSet<T>of(T... elems)booleanremove(Object elem)booleanremoveAll(Collection<?> elems)HashTrieSet<T>removed(T elem)booleanretainAll(Collection<?> elems)intsize()Object[]toArray()<U> U[]toArray(U[] array)StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.Set
spliterator
-
-
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
contains
public boolean contains(Object elem)
-
containsAll
public boolean containsAll(Collection<?> elems)
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceSet<T>
-
head
public T head()
-
add
public boolean add(T elem)
-
addAll
public boolean addAll(Collection<? extends T> elems)
-
remove
public boolean remove(Object elem)
-
removeAll
public boolean removeAll(Collection<?> elems)
-
retainAll
public boolean retainAll(Collection<?> elems)
-
clear
public void clear()
-
added
public HashTrieSet<T> added(T elem)
-
added
public HashTrieSet<T> added(Collection<? extends T> elems)
-
merged
public HashTrieSet<T> merged(HashTrieSet<T> elems)
-
removed
public HashTrieSet<T> removed(T elem)
-
toArray
public Object[] toArray()
-
toArray
public <U> U[] toArray(U[] array)
-
equals
public boolean equals(Object other)
-
hashCode
public int hashCode()
-
debug
public <U> Output<U> debug(Output<U> output)
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput.
-
empty
public static <T> HashTrieSet<T> empty()
-
of
public static <T> HashTrieSet<T> of(T... elems)
-
from
public static <T> HashTrieSet<T> from(Iterable<? extends T> elems)
-
-