- java.lang.Object
-
- swim.collections.HashTrieSet<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(T elem)
boolean
addAll(Collection<? extends T> elems)
HashTrieSet<T>
added(Collection<? extends T> elems)
HashTrieSet<T>
added(T elem)
void
clear()
boolean
contains(Object elem)
boolean
containsAll(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()
boolean
equals(Object other)
static <T> HashTrieSet<T>
from(Iterable<? extends T> elems)
int
hashCode()
T
head()
boolean
isEmpty()
Iterator<T>
iterator()
HashTrieSet<T>
merged(HashTrieSet<T> elems)
T
next(Object elem)
static <T> HashTrieSet<T>
of(T... elems)
boolean
remove(Object elem)
boolean
removeAll(Collection<?> elems)
HashTrieSet<T>
removed(T elem)
boolean
retainAll(Collection<?> elems)
int
size()
Object[]
toArray()
<U> U[]
toArray(U[] array)
String
toString()
-
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:
containsAll
in interfaceCollection<T>
- Specified by:
containsAll
in 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:Debug
Writes 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)
-
-