- 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 void
clear()
boolean
containsKey(Object value)
boolean
containsKey(Value key, S shape)
boolean
containsValue(Object value)
Value
get(Object key)
Value
get(Value key, S shape)
QTree
getTree()
boolean
isEmpty()
boolean
isResident()
boolean
isTransient()
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()
Value
move(Value key, S oldShape, S newShape, Value newValue)
Value
put(Value key, S shape, Value newValue)
Value
remove(Value key, S shape)
Z2Form<S>
shapeForm()
int
size()
<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:
isEmpty
in interfaceSpatialMap<Value,S,Value>
-
size
public int size()
- Specified by:
size
in interfaceSpatialMap<Value,S,Value>
-
containsKey
public boolean containsKey(Value key, S shape)
- Specified by:
containsKey
in interfaceSpatialMap<Value,S,Value>
-
containsKey
public boolean containsKey(Object value)
- Specified by:
containsKey
in interfaceSpatialMap<Value,S,Value>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceSpatialMap<Value,S,Value>
-
get
public Value get(Value key, S shape)
- Specified by:
get
in interfaceSpatialMap<Value,S,Value>
-
put
public Value put(Value key, S shape, Value newValue)
- Specified by:
put
in interfaceSpatialMap<Value,S,Value>
-
move
public Value move(Value key, S oldShape, S newShape, Value newValue)
- Specified by:
move
in interfaceSpatialMap<Value,S,Value>
-
remove
public Value remove(Value key, S shape)
- Specified by:
remove
in interfaceSpatialMap<Value,S,Value>
-
clear
public void clear()
- Specified by:
clear
in interfaceSpatialMap<Value,S,Value>
-
iterator
public Cursor<SpatialMap.Entry<Value,S,Value>> iterator(S shape)
- Specified by:
iterator
in interfaceSpatialMap<Value,S,Value>
-
iterator
public Cursor<SpatialMap.Entry<Value,S,Value>> iterator()
-
keyIterator
public Cursor<Value> keyIterator()
- Specified by:
keyIterator
in interfaceSpatialMap<Value,S,Value>
-
valueIterator
public Cursor<Value> valueIterator()
- Specified by:
valueIterator
in interfaceSpatialMap<Value,S,Value>
-
-