java.lang.Object
swim.collections.STreeContext<T>
swim.collections.STreeList<T>
- All Implemented Interfaces:
Cloneable,Iterable<T>,Collection<T>,List<T>,swim.codec.Debug,swim.util.KeyedList<T>
public class STreeList<T>
extends STreeContext<T>
implements swim.util.KeyedList<T>, Cloneable, swim.codec.Debug
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> swim.codec.Output<U>debug(swim.codec.Output<U> output) voiddrop(int lower) static <T> STreeList<T>empty()booleanget(int index) getEntry(int index) inthashCode()intbooleanisEmpty()swim.util.Cursor<T>iterator()swim.util.Cursor<Object>intlastIndexOf(Object value) swim.util.Cursor<T>swim.util.Cursor<T>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) swim.util.Cursor<T>swim.util.Cursor<Object>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
- Specified by:
getin interfaceswim.util.KeyedList<T>
-
getEntry
- Specified by:
getEntryin interfaceswim.util.KeyedList<T>
-
getEntry
- Specified by:
getEntryin interfaceswim.util.KeyedList<T>
-
set
-
set
- Specified by:
setin interfaceswim.util.KeyedList<T>
-
add
-
add
- Specified by:
addin interfaceswim.util.KeyedList<T>
-
addAll
-
add
-
add
- Specified by:
addin interfaceswim.util.KeyedList<T>
-
addAll
-
remove
-
remove
- Specified by:
removein interfaceswim.util.KeyedList<T>
-
remove
-
removeAll
-
retainAll
-
move
public void move(int fromIndex, int toIndex) - Specified by:
movein interfaceswim.util.KeyedList<T>
-
move
- Specified by:
movein interfaceswim.util.KeyedList<T>
-
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 interfaceswim.util.KeyedList<T>
-
entryIterator
- Specified by:
entryIteratorin interfaceswim.util.KeyedList<T>
-
reverseIterator
-
reverseKeyIterator
-
reverseEntryIterator
-
snapshot
-
subList
-
clone
-
copy
-
lookup
-
equals
-
hashCode
public int hashCode() -
debug
public <U> swim.codec.Output<U> debug(swim.codec.Output<U> output) - Specified by:
debugin interfaceswim.codec.Debug
-
toString
-
empty
-
of
-