- java.lang.Object
-
- swim.spatial.QTreeContext<K,S,V>
-
- swim.spatial.QTree<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 QTree<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
Modifier and Type Method Description voidclear()QTree<K,S,V>clone()booleancontainsKey(Object key)booleancontainsKey(K key, S shape)booleancontainsValue(Object value)protected QTree<K,S,V>copy(QTreePage<K,S,V> root)voiddebug(Output<?> output)Writes a developer readable, debug-formatted string representation of this object tooutput.static <K,S,V>
QTree<K,S,V>empty(Z2Form<S> shapeForm)booleanequals(Object other)Vget(Object key)Vget(K key, S shape)inthashCode()booleanisEmpty()Cursor<SpatialMap.Entry<K,S,V>>iterator()Cursor<SpatialMap.Entry<K,S,V>>iterator(S shape)Cursor<K>keyIterator()Vmove(K key, S oldShape, S newShape, V newValue)Vput(K key, S shape, V newValue)Vremove(K key, S shape)QTree<K,S,V>removed(K key, S shape)intsize()StringtoString()QTree<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:
isEmptyin interfaceSpatialMap<K,S,V>
-
size
public int size()
- Specified by:
sizein interfaceSpatialMap<K,S,V>
-
containsKey
public boolean containsKey(K key, S shape)
- Specified by:
containsKeyin interfaceSpatialMap<K,S,V>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceSpatialMap<K,S,V>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceSpatialMap<K,S,V>
-
move
public V move(K key, S oldShape, S newShape, V newValue)
- Specified by:
movein interfaceSpatialMap<K,S,V>
-
clear
public void clear()
- Specified by:
clearin interfaceSpatialMap<K,S,V>
-
iterator
public Cursor<SpatialMap.Entry<K,S,V>> iterator(S shape)
- Specified by:
iteratorin interfaceSpatialMap<K,S,V>
-
iterator
public Cursor<SpatialMap.Entry<K,S,V>> iterator()
-
keyIterator
public Cursor<K> keyIterator()
- Specified by:
keyIteratorin interfaceSpatialMap<K,S,V>
-
valueIterator
public Cursor<V> valueIterator()
- Specified by:
valueIteratorin interfaceSpatialMap<K,S,V>
-
equals
public boolean equals(Object other)
- Specified by:
equalsin interfaceComparator<K>- Overrides:
equalsin classObject
-
debug
public void debug(Output<?> output)
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput.
-
-