java.lang.Object
swim.collections.STreeContext<T>
swim.collections.STreeList<T>
Mutable, thread-safe
KeyedList backed by an S-Tree.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbooleanbooleanbooleanaddAll(int index, Collection<? extends T> newValues) booleanaddAll(Collection<? extends T> newValues) voidclear()clone()booleanbooleancontainsAll(Collection<?> values) <U> Output<U>Writes a developer readable, debug-formatted string representation of this object tooutput.voiddrop(int lower) static <T> STreeList<T>empty()booleanget(int index) getEntry(int index) inthashCode()intbooleanisEmpty()iterator()intlastIndexOf(Object value) listIterator(int index) protected intvoidmove(int fromIndex, int toIndex) voidstatic <T> STree<T>of(T... values) remove(int index) booleanbooleanremoveAll(Collection<?> values) booleanretainAll(Collection<?> values) intsize()snapshot()subList(int fromIndex, int toIndex) voidtake(int keep) Object[]toArray()<U> U[]toArray(U[] array) toString()Methods inherited from class swim.collections.STreeContext
compare, identify, pageShouldMerge, pageShouldSplit, pageSplitSizeMethods inherited from class java.lang.Object
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
-
Constructor Details
-
STreeList
-
STreeList
public STreeList()
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
size
public int size() -
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceList<T>
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T>
-
get
-
get
-
getEntry
-
getEntry
-
set
-
set
-
add
-
add
-
addAll
-
add
-
add
-
addAll
-
remove
-
remove
-
remove
-
removeAll
-
retainAll
-
move
public void move(int fromIndex, int toIndex) -
move
-
drop
public void drop(int lower) -
take
public void take(int keep) -
clear
public void clear() -
toArray
-
toArray
public <U> U[] toArray(U[] array) -
iterator
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
keyIterator
- Specified by:
keyIteratorin interfaceKeyedList<T>
-
entryIterator
- Specified by:
entryIteratorin interfaceKeyedList<T>
-
reverseIterator
-
reverseKeyIterator
-
reverseEntryIterator
-
snapshot
-
subList
-
clone
-
copy
-
lookup
-
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
-