- java.lang.Object
-
- swim.spatial.QTreeContext<K,S,V>
-
- swim.spatial.QTreeMap<K,S,V>
-
- All Implemented Interfaces:
Cloneable
,Iterable<SpatialMap.Entry<K,S,V>>
,Comparator<QTreeEntry<K,S,V>>
,Debug
,SpatialMap<K,S,V>
public class QTreeMap<K,S,V> extends QTreeContext<K,S,V> implements SpatialMap<K,S,V>, Comparator<QTreeEntry<K,S,V>>, Cloneable, Debug
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface swim.spatial.SpatialMap
SpatialMap.Entry<K,S,V>, SpatialMap.SimpleEntry<K,S,V>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
QTreeMap<K,S,V>
clone()
boolean
containsKey(Object key)
boolean
containsKey(K key, S shape)
boolean
containsValue(Object value)
protected QTreeMap<K,S,V>
copy(QTreePage<K,S,V> root)
<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.static <K,S,V>
QTreeMap<K,S,V>empty(Z2Form<S> shapeForm)
boolean
equals(Object other)
V
get(Object key)
V
get(K key, S shape)
int
hashCode()
boolean
isEmpty()
Cursor<SpatialMap.Entry<K,S,V>>
iterator()
Cursor<SpatialMap.Entry<K,S,V>>
iterator(S shape)
Cursor<K>
keyIterator()
V
move(K key, S oldShape, S newShape, V newValue)
V
put(K key, S shape, V newValue)
V
remove(K key, S shape)
QTreeMap<K,S,V>
removed(K key, S shape)
Z2Form<S>
shapeForm()
int
size()
SpatialMap<K,S,V>
snapshot()
String
toString()
QTreeMap<K,S,V>
updated(K key, S shape, V newValue)
Cursor<V>
valueIterator()
-
Methods inherited from class swim.spatial.QTreeContext
compare, compareKey, pageShouldMerge, pageShouldSplit, pageSplitSize
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
compare, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceSpatialMap<K,S,V>
-
size
public int size()
- Specified by:
size
in interfaceSpatialMap<K,S,V>
-
containsKey
public boolean containsKey(K key, S shape)
- Specified by:
containsKey
in interfaceSpatialMap<K,S,V>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceSpatialMap<K,S,V>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceSpatialMap<K,S,V>
-
move
public V move(K key, S oldShape, S newShape, V newValue)
- Specified by:
move
in interfaceSpatialMap<K,S,V>
-
clear
public void clear()
- Specified by:
clear
in interfaceSpatialMap<K,S,V>
-
iterator
public Cursor<SpatialMap.Entry<K,S,V>> iterator(S shape)
- Specified by:
iterator
in interfaceSpatialMap<K,S,V>
-
iterator
public Cursor<SpatialMap.Entry<K,S,V>> iterator()
-
keyIterator
public Cursor<K> keyIterator()
- Specified by:
keyIterator
in interfaceSpatialMap<K,S,V>
-
valueIterator
public Cursor<V> valueIterator()
- Specified by:
valueIterator
in interfaceSpatialMap<K,S,V>
-
snapshot
public SpatialMap<K,S,V> snapshot()
-
equals
public boolean equals(Object other)
- Specified by:
equals
in interfaceComparator<K>
- Overrides:
equals
in classObject
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
-