- java.lang.Object
-
- swim.db.STreeListView
-
- All Implemented Interfaces:
Iterable<swim.structure.Value>,Collection<swim.structure.Value>,List<swim.structure.Value>
public class STreeListView extends Object implements List<swim.structure.Value>
-
-
Constructor Summary
Constructors Constructor Description STreeListView(STree tree)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, swim.structure.Value newValue)booleanadd(swim.structure.Value newValue)booleanaddAll(int index, Collection<? extends swim.structure.Value> newValues)booleanaddAll(Collection<? extends swim.structure.Value> newValues)voidclear()booleancontains(Object value)booleancontainsAll(Collection<?> values)swim.structure.Valueget(int index)STreegetTree()intindexOf(Object object)booleanisEmpty()booleanisResident()booleanisTransient()swim.util.Cursor<swim.structure.Value>iterator()intlastIndexOf(Object object)swim.util.Cursor<swim.structure.Value>listIterator()swim.util.Cursor<swim.structure.Value>listIterator(int index)STreeListViewload()swim.structure.Valueremove(int index)booleanremove(Object value)booleanremoveAll(Collection<?> values)booleanretainAll(Collection<?> values)swim.structure.Valueset(int index, swim.structure.Value newValue)intsize()List<swim.structure.Value>subList(int fromIndex, int toIndex)Object[]toArray()<T> T[]toArray(T[] array)<V> swim.structure.collections.ValueList<V>valueClass(Class<V> valueClass)<V> swim.structure.collections.ValueList<V>valueForm(swim.structure.Form<V> valueForm)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
-
-
-
Field Detail
-
tree
protected final STree tree
-
-
Constructor Detail
-
STreeListView
public STreeListView(STree tree)
-
-
Method Detail
-
getTree
public STree getTree()
-
load
public STreeListView load()
-
isResident
public boolean isResident()
-
isTransient
public boolean isTransient()
-
valueForm
public <V> swim.structure.collections.ValueList<V> valueForm(swim.structure.Form<V> valueForm)
-
valueClass
public <V> swim.structure.collections.ValueList<V> valueClass(Class<V> valueClass)
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection<swim.structure.Value>- Specified by:
isEmptyin interfaceList<swim.structure.Value>
-
size
public int size()
- Specified by:
sizein interfaceCollection<swim.structure.Value>- Specified by:
sizein interfaceList<swim.structure.Value>
-
contains
public boolean contains(Object value)
- Specified by:
containsin interfaceCollection<swim.structure.Value>- Specified by:
containsin interfaceList<swim.structure.Value>
-
containsAll
public boolean containsAll(Collection<?> values)
- Specified by:
containsAllin interfaceCollection<swim.structure.Value>- Specified by:
containsAllin interfaceList<swim.structure.Value>
-
indexOf
public int indexOf(Object object)
-
lastIndexOf
public int lastIndexOf(Object object)
- Specified by:
lastIndexOfin interfaceList<swim.structure.Value>
-
get
public swim.structure.Value get(int index)
-
set
public swim.structure.Value set(int index, swim.structure.Value newValue)
-
add
public boolean add(swim.structure.Value newValue)
- Specified by:
addin interfaceCollection<swim.structure.Value>- Specified by:
addin interfaceList<swim.structure.Value>
-
addAll
public boolean addAll(Collection<? extends swim.structure.Value> newValues)
- Specified by:
addAllin interfaceCollection<swim.structure.Value>- Specified by:
addAllin interfaceList<swim.structure.Value>
-
add
public void add(int index, swim.structure.Value newValue)
-
addAll
public boolean addAll(int index, Collection<? extends swim.structure.Value> newValues)
-
remove
public swim.structure.Value remove(int index)
-
remove
public boolean remove(Object value)
- Specified by:
removein interfaceCollection<swim.structure.Value>- Specified by:
removein interfaceList<swim.structure.Value>
-
removeAll
public boolean removeAll(Collection<?> values)
- Specified by:
removeAllin interfaceCollection<swim.structure.Value>- Specified by:
removeAllin interfaceList<swim.structure.Value>
-
retainAll
public boolean retainAll(Collection<?> values)
- Specified by:
retainAllin interfaceCollection<swim.structure.Value>- Specified by:
retainAllin interfaceList<swim.structure.Value>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<swim.structure.Value>- Specified by:
clearin interfaceList<swim.structure.Value>
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceCollection<swim.structure.Value>- Specified by:
toArrayin interfaceList<swim.structure.Value>
-
toArray
public <T> T[] toArray(T[] array)
- Specified by:
toArrayin interfaceCollection<swim.structure.Value>- Specified by:
toArrayin interfaceList<swim.structure.Value>
-
iterator
public swim.util.Cursor<swim.structure.Value> iterator()
-
listIterator
public swim.util.Cursor<swim.structure.Value> listIterator()
- Specified by:
listIteratorin interfaceList<swim.structure.Value>
-
listIterator
public swim.util.Cursor<swim.structure.Value> listIterator(int index)
- Specified by:
listIteratorin interfaceList<swim.structure.Value>
-
-