- java.lang.Object
-
- swim.collections.STreeContext<T>
-
- swim.collections.STreeList<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, T newValue)
void
add(int index, T newValue, Object key)
boolean
add(T newValue)
boolean
add(T newValue, Object key)
boolean
addAll(int index, Collection<? extends T> newValues)
boolean
addAll(Collection<? extends T> newValues)
void
clear()
STree<T>
clone()
boolean
contains(Object value)
boolean
containsAll(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
.void
drop(int lower)
static <T> STreeList<T>
empty()
Cursor<Map.Entry<Object,T>>
entryIterator()
boolean
equals(Object other)
T
get(int index)
T
get(int index, Object key)
Map.Entry<Object,T>
getEntry(int index)
Map.Entry<Object,T>
getEntry(int index, Object key)
int
hashCode()
int
indexOf(Object value)
boolean
isEmpty()
Cursor<T>
iterator()
Cursor<Object>
keyIterator()
int
lastIndexOf(Object value)
Cursor<T>
listIterator()
Cursor<T>
listIterator(int index)
protected int
lookup(int start, Object key, STreePage<T> root)
void
move(int fromIndex, int toIndex)
void
move(int fromIndex, int toIndex, Object key)
static <T> STree<T>
of(T... values)
T
remove(int index)
T
remove(int index, Object key)
boolean
remove(Object value)
boolean
removeAll(Collection<?> values)
boolean
retainAll(Collection<?> values)
Cursor<Map.Entry<Object,T>>
reverseEntryIterator()
Cursor<T>
reverseIterator()
Cursor<Object>
reverseKeyIterator()
T
set(int index, T newValue)
T
set(int index, T newValue, Object key)
int
size()
STree<T>
snapshot()
List<T>
subList(int fromIndex, int toIndex)
void
take(int keep)
Object[]
toArray()
<U> U[]
toArray(U[] array)
String
toString()
-
Methods inherited from class swim.collections.STreeContext
compare, identify, pageShouldMerge, pageShouldSplit, pageSplitSize
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
replaceAll, sort, spliterator
-
-
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
contains
public boolean contains(Object value)
-
containsAll
public boolean containsAll(Collection<?> values)
- Specified by:
containsAll
in interfaceCollection<T>
- Specified by:
containsAll
in interfaceList<T>
-
lastIndexOf
public int lastIndexOf(Object value)
- Specified by:
lastIndexOf
in interfaceList<T>
-
add
public boolean add(T newValue)
-
addAll
public boolean addAll(Collection<? extends T> newValues)
-
addAll
public boolean addAll(int index, Collection<? extends T> newValues)
-
remove
public boolean remove(Object value)
-
removeAll
public boolean removeAll(Collection<?> values)
-
retainAll
public boolean retainAll(Collection<?> values)
-
move
public void move(int fromIndex, int toIndex, Object key)
-
drop
public void drop(int lower)
-
take
public void take(int keep)
-
clear
public void clear()
-
toArray
public Object[] toArray()
-
toArray
public <U> U[] toArray(U[] array)
-
listIterator
public Cursor<T> listIterator()
- Specified by:
listIterator
in interfaceList<T>
-
listIterator
public Cursor<T> listIterator(int index)
- Specified by:
listIterator
in interfaceList<T>
-
keyIterator
public Cursor<Object> keyIterator()
- Specified by:
keyIterator
in interfaceKeyedList<T>
-
entryIterator
public Cursor<Map.Entry<Object,T>> entryIterator()
- Specified by:
entryIterator
in interfaceKeyedList<T>
-
equals
public boolean equals(Object other)
-
hashCode
public int hashCode()
-
debug
public <U> Output<U> debug(Output<U> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
empty
public static <T> STreeList<T> empty()
-
of
public static <T> STree<T> of(T... values)
-
-