- java.lang.Object
- 
- swim.collections.STreeContext<T>
- 
- swim.collections.STree<T>
 
 
- 
 public class STree<T> extends STreeContext<T> implements KeyedList<T>, Cloneable, Debug 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, T newValue)voidadd(int index, T newValue, Object key)booleanadd(T newValue)booleanadd(T newValue, Object key)booleanaddAll(int index, Collection<? extends T> newValues)booleanaddAll(Collection<? extends T> newValues)STree<T>appended(T newValue)STree<T>appended(T newValue, Object key)voidclear()STree<T>clone()protected intcompare(Object x, Object y)booleancontains(Object value)booleancontainsAll(Collection<?> values)protected STree<T>copy(STreePage<T> root)<U> Output<U>debug(Output<U> output)Writes a developer readable, debug-formatted string representation of this object tooutput.voiddrop(int lower)static <T> STree<T>empty()Cursor<Map.Entry<Object,T>>entryIterator()booleanequals(Object other)Tget(int index)Tget(int index, Object key)Map.Entry<Object,T>getEntry(int index)Map.Entry<Object,T>getEntry(int index, Object key)inthashCode()protected Objectidentify(T value)intindexOf(Object value)STree<T>inserted(int index, T newValue)STree<T>inserted(int index, T newValue, Object key)booleanisEmpty()Cursor<T>iterator()Cursor<Object>keyIterator()intlastIndexOf(Object value)Cursor<T>listIterator()Cursor<T>listIterator(int index)protected intlookup(int start, Object key)voidmove(int fromIndex, int toIndex)voidmove(int fromIndex, int toIndex, Object key)static <T> STree<T>of(T... values)protected booleanpageShouldMerge(STreePage<T> page)protected booleanpageShouldSplit(STreePage<T> page)protected intpageSplitSize()Tremove(int index)Tremove(int index, Object key)booleanremove(Object value)booleanremoveAll(Collection<?> values)STree<T>removed(int index)STree<T>removed(int index, Object key)STree<T>removed(Object value)booleanretainAll(Collection<?> values)Cursor<Map.Entry<Object,T>>reverseEntryIterator()Cursor<T>reverseIterator()Cursor<Object>reverseKeyIterator()Tset(int index, T newValue)Tset(int index, T newValue, Object key)intsize()List<T>subList(int fromIndex, int toIndex)voidtake(int upper)Object[]toArray()<U> U[]toArray(U[] array)StringtoString()STree<T>updated(int index, T newValue)STree<T>updated(int index, T newValue, Object key)- 
Methods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArray
 - 
Methods inherited from interface java.util.ListreplaceAll, sort, spliterator
 
- 
 
- 
- 
- 
Method Detail- 
isEmptypublic boolean isEmpty() 
 - 
sizepublic int size() 
 - 
containspublic boolean contains(Object value) 
 - 
containsAllpublic boolean containsAll(Collection<?> values) - Specified by:
- containsAllin interface- Collection<T>
- Specified by:
- containsAllin interface- List<T>
 
 - 
lastIndexOfpublic int lastIndexOf(Object value) - Specified by:
- lastIndexOfin interface- List<T>
 
 - 
addpublic boolean add(T newValue) 
 - 
addAllpublic boolean addAll(Collection<? extends T> newValues) 
 - 
addAllpublic boolean addAll(int index, Collection<? extends T> newValues)
 - 
removepublic boolean remove(Object value) 
 - 
removeAllpublic boolean removeAll(Collection<?> values) 
 - 
retainAllpublic boolean retainAll(Collection<?> values) 
 - 
movepublic void move(int fromIndex, int toIndex, Object key)
 - 
droppublic void drop(int lower) 
 - 
takepublic void take(int upper) 
 - 
clearpublic void clear() 
 - 
toArraypublic Object[] toArray() 
 - 
toArraypublic <U> U[] toArray(U[] array) 
 - 
listIteratorpublic Cursor<T> listIterator() - Specified by:
- listIteratorin interface- List<T>
 
 - 
listIteratorpublic Cursor<T> listIterator(int index) - Specified by:
- listIteratorin interface- List<T>
 
 - 
keyIteratorpublic Cursor<Object> keyIterator() - Specified by:
- keyIteratorin interface- KeyedList<T>
 
 - 
entryIteratorpublic Cursor<Map.Entry<Object,T>> entryIterator() - Specified by:
- entryIteratorin interface- KeyedList<T>
 
 - 
identifyprotected Object identify(T value) - Overrides:
- identifyin class- STreeContext<T>
 
 - 
compareprotected int compare(Object x, Object y) - Overrides:
- comparein class- STreeContext<T>
 
 - 
pageSplitSizeprotected int pageSplitSize() - Overrides:
- pageSplitSizein class- STreeContext<T>
 
 - 
pageShouldSplitprotected boolean pageShouldSplit(STreePage<T> page) - Overrides:
- pageShouldSplitin class- STreeContext<T>
 
 - 
pageShouldMergeprotected boolean pageShouldMerge(STreePage<T> page) - Overrides:
- pageShouldMergein class- STreeContext<T>
 
 - 
lookupprotected int lookup(int start, Object key)
 - 
equalspublic boolean equals(Object other) 
 - 
hashCodepublic int hashCode() 
 - 
debugpublic <U> Output<U> debug(Output<U> output) Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput.
 - 
emptypublic static <T> STree<T> empty() 
 - 
ofpublic static <T> STree<T> of(T... values) 
 
- 
 
-