java.lang.Object
swim.collections.FingerTrieSeq<T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>,List<T>,Debug
-
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends T> newElems) booleanaddAll(Collection<? extends T> newElems) appended(Collection<? extends T> elems) body()static <T> Builder<T,FingerTrieSeq<T>> builder()static <T> Builder<T,FingerTrieSeq<T>> builder(FingerTrieSeq<? extends T> trie) voidclear()booleanbooleancontainsAll(Collection<?> elems) <U> Output<U>Writes a developer readable, debug-formatted string representation of this object tooutput.drop(int lower) static <T> FingerTrieSeq<T>empty()booleanfoot()static <T> FingerTrieSeq<T>get(int index) inthashCode()head()intbooleanisEmpty()iterator()intlastIndexOf(Object elem) listIterator(int index) static <T> FingerTrieSeq<T>of(T... elems) static <T> FingerTrieSeq<T>of(T elem0, T elem1) prepended(Collection<? extends T> elems) remove(int index) booleanbooleanremoveAll(Collection<?> elems) removed(int index) booleanretainAll(Collection<?> elems) intsize()slice(int lower, int upper) subList(int fromIndex, int toIndex) tail()take(int upper) Object[]toArray()<T> T[]toArray(T[] array) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
replaceAll, sort, spliterator
-
Method Details
-
isEmpty
public boolean isEmpty() -
size
public int size() -
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceList<T>
-
get
-
set
-
add
-
addAll
-
add
-
addAll
-
remove
-
remove
-
removeAll
-
retainAll
-
clear
public void clear() -
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T>
-
updated
-
head
-
tail
-
body
-
foot
-
drop
-
take
-
slice
-
appended
-
appended
-
prepended
-
prepended
-
removed
-
removed
-
subList
-
toArray
-
toArray
public <T> T[] toArray(T[] array) -
iterator
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
equals
-
hashCode
public int hashCode() -
debug
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput. -
toString
-
empty
-
of
-
of
-
from
-
builder
-
builder
-