- java.lang.Object
-
- swim.db.QTreeMapView<S>
-
- All Implemented Interfaces:
Iterable<SpatialMap.Entry<Value,S,Value>>,SpatialMap<Value,S,Value>
public class QTreeMapView<S> extends Object implements SpatialMap<Value,S,Value>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface swim.spatial.SpatialMap
SpatialMap.Entry<K,S,V>, SpatialMap.SimpleEntry<K,S,V>
-
-
Constructor Summary
Constructors Constructor Description QTreeMapView(QTree tree, Z2Form<S> shapeForm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object value)booleancontainsKey(Value key, S shape)booleancontainsValue(Object value)Valueget(Object key)Valueget(Value key, S shape)QTreegetTree()booleanisEmpty()booleanisResident()booleanisTransient()Cursor<SpatialMap.Entry<Value,S,Value>>iterator()Cursor<SpatialMap.Entry<Value,S,Value>>iterator(S shape)<K> SpatialValueMap<K,S,Value>keyClass(Class<K> keyClass)<K> SpatialValueMap<K,S,Value>keyForm(Form<K> keyForm)Cursor<Value>keyIterator()QTreeMapView<S>load()Valuemove(Value key, S oldShape, S newShape, Value newValue)Valueput(Value key, S shape, Value newValue)Valueremove(Value key, S shape)Z2Form<S>shapeForm()intsize()<V> SpatialValueMap<Value,S,V>valueClass(Class<V> valueClass)<V> SpatialValueMap<Value,S,V>valueForm(Form<V> valueForm)Cursor<Value>valueIterator()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getTree
public QTree getTree()
-
load
public QTreeMapView<S> load()
-
isResident
public boolean isResident()
-
isTransient
public boolean isTransient()
-
keyForm
public <K> SpatialValueMap<K,S,Value> keyForm(Form<K> keyForm)
-
keyClass
public <K> SpatialValueMap<K,S,Value> keyClass(Class<K> keyClass)
-
valueForm
public <V> SpatialValueMap<Value,S,V> valueForm(Form<V> valueForm)
-
valueClass
public <V> SpatialValueMap<Value,S,V> valueClass(Class<V> valueClass)
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceSpatialMap<Value,S,Value>
-
size
public int size()
- Specified by:
sizein interfaceSpatialMap<Value,S,Value>
-
containsKey
public boolean containsKey(Value key, S shape)
- Specified by:
containsKeyin interfaceSpatialMap<Value,S,Value>
-
containsKey
public boolean containsKey(Object value)
- Specified by:
containsKeyin interfaceSpatialMap<Value,S,Value>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceSpatialMap<Value,S,Value>
-
get
public Value get(Value key, S shape)
- Specified by:
getin interfaceSpatialMap<Value,S,Value>
-
put
public Value put(Value key, S shape, Value newValue)
- Specified by:
putin interfaceSpatialMap<Value,S,Value>
-
move
public Value move(Value key, S oldShape, S newShape, Value newValue)
- Specified by:
movein interfaceSpatialMap<Value,S,Value>
-
remove
public Value remove(Value key, S shape)
- Specified by:
removein interfaceSpatialMap<Value,S,Value>
-
clear
public void clear()
- Specified by:
clearin interfaceSpatialMap<Value,S,Value>
-
iterator
public Cursor<SpatialMap.Entry<Value,S,Value>> iterator(S shape)
- Specified by:
iteratorin interfaceSpatialMap<Value,S,Value>
-
iterator
public Cursor<SpatialMap.Entry<Value,S,Value>> iterator()
-
keyIterator
public Cursor<Value> keyIterator()
- Specified by:
keyIteratorin interfaceSpatialMap<Value,S,Value>
-
valueIterator
public Cursor<Value> valueIterator()
- Specified by:
valueIteratorin interfaceSpatialMap<Value,S,Value>
-
-