java.lang.Object
swim.collections.STreeContext<T>
swim.collections.STree<T>
-
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> Output<U>Writes a developer readable, debug-formatted string representation of this object tooutput.voiddrop(int lower) static <T> STree<T>empty()booleanget(int index) getEntry(int index) inthashCode()protected ObjectintbooleanisEmpty()iterator()intlastIndexOf(Object value) 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) 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
-
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 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 interfaceKeyedList<T>
-
entryIterator
- Specified by:
entryIteratorin interfaceKeyedList<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
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput. -
toString
-
empty
-
of
-