- java.lang.Object
-
- swim.collections.FingerTrieSeq<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, T newElem)
boolean
add(T newElem)
boolean
addAll(int index, Collection<? extends T> newElems)
boolean
addAll(Collection<? extends T> newElems)
FingerTrieSeq<T>
appended(Collection<? extends T> elems)
FingerTrieSeq<T>
appended(T elem)
FingerTrieSeq<T>
body()
static <T> Builder<T,FingerTrieSeq<T>>
builder()
static <T> Builder<T,FingerTrieSeq<T>>
builder(FingerTrieSeq<? extends T> trie)
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
.FingerTrieSeq<T>
drop(int lower)
static <T> FingerTrieSeq<T>
empty()
boolean
equals(Object other)
T
foot()
static <T> FingerTrieSeq<T>
from(Iterable<? extends T> elems)
T
get(int index)
int
hashCode()
T
head()
int
indexOf(Object elem)
boolean
isEmpty()
Iterator<T>
iterator()
int
lastIndexOf(Object elem)
ListIterator<T>
listIterator()
ListIterator<T>
listIterator(int index)
static <T> FingerTrieSeq<T>
of(T... elems)
static <T> FingerTrieSeq<T>
of(T elem0, T elem1)
FingerTrieSeq<T>
prepended(Collection<? extends T> elems)
FingerTrieSeq<T>
prepended(T elem)
T
remove(int index)
boolean
remove(Object elem)
boolean
removeAll(Collection<?> elems)
FingerTrieSeq<T>
removed(int index)
FingerTrieSeq<T>
removed(Object elem)
boolean
retainAll(Collection<?> elems)
T
set(int index, T nwElem)
int
size()
FingerTrieSeq<T>
slice(int lower, int upper)
FingerTrieSeq<T>
subList(int fromIndex, int toIndex)
FingerTrieSeq<T>
tail()
FingerTrieSeq<T>
take(int upper)
Object[]
toArray()
<T> T[]
toArray(T[] array)
String
toString()
FingerTrieSeq<T>
updated(int index, T elem)
-
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.List
replaceAll, sort, 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 interfaceList<T>
-
add
public boolean add(T newElem)
-
addAll
public boolean addAll(Collection<? extends T> newElems)
-
addAll
public boolean addAll(int index, Collection<? extends T> newElems)
-
remove
public boolean remove(Object elem)
-
removeAll
public boolean removeAll(Collection<?> elems)
-
retainAll
public boolean retainAll(Collection<?> elems)
-
clear
public void clear()
-
lastIndexOf
public int lastIndexOf(Object elem)
- Specified by:
lastIndexOf
in interfaceList<T>
-
updated
public FingerTrieSeq<T> updated(int index, T elem)
-
head
public T head()
-
tail
public FingerTrieSeq<T> tail()
-
body
public FingerTrieSeq<T> body()
-
foot
public T foot()
-
drop
public FingerTrieSeq<T> drop(int lower)
-
take
public FingerTrieSeq<T> take(int upper)
-
slice
public FingerTrieSeq<T> slice(int lower, int upper)
-
appended
public FingerTrieSeq<T> appended(T elem)
-
appended
public FingerTrieSeq<T> appended(Collection<? extends T> elems)
-
prepended
public FingerTrieSeq<T> prepended(T elem)
-
prepended
public FingerTrieSeq<T> prepended(Collection<? extends T> elems)
-
removed
public FingerTrieSeq<T> removed(int index)
-
removed
public FingerTrieSeq<T> removed(Object elem)
-
subList
public FingerTrieSeq<T> subList(int fromIndex, int toIndex)
-
toArray
public Object[] toArray()
-
toArray
public <T> T[] toArray(T[] array)
-
listIterator
public ListIterator<T> listIterator()
- Specified by:
listIterator
in interfaceList<T>
-
listIterator
public ListIterator<T> listIterator(int index)
- Specified by:
listIterator
in interfaceList<T>
-
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> FingerTrieSeq<T> empty()
-
of
public static <T> FingerTrieSeq<T> of(T elem0, T elem1)
-
of
public static <T> FingerTrieSeq<T> of(T... elems)
-
from
public static <T> FingerTrieSeq<T> from(Iterable<? extends T> elems)
-
builder
public static <T> Builder<T,FingerTrieSeq<T>> builder(FingerTrieSeq<? extends T> trie)
-
builder
public static <T> Builder<T,FingerTrieSeq<T>> builder()
-
-