java.lang.Object
swim.collections.STreeContext<T>
swim.collections.STree<T>
- All Implemented Interfaces:
Cloneable,Iterable<T>,Collection<T>,List<T>,swim.codec.Debug,swim.util.KeyedList<T>
public class STree<T>
extends STreeContext<T>
implements swim.util.KeyedList<T>, Cloneable, swim.codec.Debug
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbooleanbooleanbooleanaddAll(int index, Collection<? extends T> newValues) booleanaddAll(Collection<? extends T> newValues) voidclear()clone()protected intbooleanbooleancontainsAll(Collection<?> values) <U> swim.codec.Output<U>debug(swim.codec.Output<U> output) voiddrop(int lower) static <T> STree<T>empty()booleanget(int index) getEntry(int index) inthashCode()protected ObjectintbooleanisEmpty()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) protected booleanpageShouldMerge(STreePage<T> page) protected booleanpageShouldSplit(STreePage<T> page) protected intremove(int index) booleanbooleanremoveAll(Collection<?> values) removed(int index) booleanretainAll(Collection<?> values) swim.util.Cursor<T>swim.util.Cursor<Object>intsize()subList(int fromIndex, int toIndex) voidtake(int upper) Object[]toArray()<U> U[]toArray(U[] array) toString()Methods 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
-
STree
-
STree
public STree()
-
-
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 upper) -
clear
public void clear() -
updated
-
updated
-
appended
-
appended
-
inserted
-
inserted
-
removed
-
removed
-
removed
-
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
-
subList
-
clone
-
copy
-
identify
- Overrides:
identifyin classSTreeContext<T>
-
compare
- Overrides:
comparein classSTreeContext<T>
-
pageSplitSize
protected int pageSplitSize()- Overrides:
pageSplitSizein classSTreeContext<T>
-
pageShouldSplit
- Overrides:
pageShouldSplitin classSTreeContext<T>
-
pageShouldMerge
- Overrides:
pageShouldMergein classSTreeContext<T>
-
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
-