Module swim.db
Package swim.db

Class QTreeMapView<S>

  • All Implemented Interfaces:
    Iterable<swim.spatial.SpatialMap.Entry<swim.structure.Value,​S,​swim.structure.Value>>, swim.spatial.SpatialMap<swim.structure.Value,​S,​swim.structure.Value>

    public class QTreeMapView<S>
    extends Object
    implements swim.spatial.SpatialMap<swim.structure.Value,​S,​swim.structure.Value>
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface swim.spatial.SpatialMap

        swim.spatial.SpatialMap.Entry<K extends Object,​S extends Object,​V extends Object>, swim.spatial.SpatialMap.SimpleEntry<K extends Object,​S extends Object,​V extends Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected swim.math.Z2Form<S> shapeForm  
      protected QTree tree  
    • Constructor Summary

      Constructors 
      Constructor Description
      QTreeMapView​(QTree tree, swim.math.Z2Form<S> shapeForm)  
    • Field Detail

      • tree

        protected final QTree tree
      • shapeForm

        protected final swim.math.Z2Form<S> shapeForm
    • Constructor Detail

      • QTreeMapView

        public QTreeMapView​(QTree tree,
                            swim.math.Z2Form<S> shapeForm)
    • Method Detail

      • getTree

        public QTree getTree()
      • shapeForm

        public swim.math.Z2Form<S> shapeForm()
      • isResident

        public boolean isResident()
      • isTransient

        public boolean isTransient()
      • keyForm

        public <K> swim.spatial.SpatialValueMap<K,​S,​swim.structure.Value> keyForm​(swim.structure.Form<K> keyForm)
      • keyClass

        public <K> swim.spatial.SpatialValueMap<K,​S,​swim.structure.Value> keyClass​(Class<K> keyClass)
      • valueForm

        public <V> swim.spatial.SpatialValueMap<swim.structure.Value,​S,​V> valueForm​(swim.structure.Form<V> valueForm)
      • valueClass

        public <V> swim.spatial.SpatialValueMap<swim.structure.Value,​S,​V> valueClass​(Class<V> valueClass)
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface swim.spatial.SpatialMap<swim.structure.Value,​S,​swim.structure.Value>
      • size

        public int size()
        Specified by:
        size in interface swim.spatial.SpatialMap<swim.structure.Value,​S,​swim.structure.Value>
      • containsKey

        public boolean containsKey​(swim.structure.Value key,
                                   S shape)
        Specified by:
        containsKey in interface swim.spatial.SpatialMap<swim.structure.Value,​S,​swim.structure.Value>
      • containsKey

        public boolean containsKey​(Object value)
        Specified by:
        containsKey in interface swim.spatial.SpatialMap<swim.structure.Value,​S,​swim.structure.Value>
      • containsValue

        public boolean containsValue​(Object value)
        Specified by:
        containsValue in interface swim.spatial.SpatialMap<swim.structure.Value,​S,​swim.structure.Value>
      • get

        public swim.structure.Value get​(Object key)
        Specified by:
        get in interface swim.spatial.SpatialMap<swim.structure.Value,​S,​swim.structure.Value>
      • get

        public swim.structure.Value get​(swim.structure.Value key,
                                        S shape)
        Specified by:
        get in interface swim.spatial.SpatialMap<swim.structure.Value,​S,​swim.structure.Value>
      • put

        public swim.structure.Value put​(swim.structure.Value key,
                                        S shape,
                                        swim.structure.Value newValue)
        Specified by:
        put in interface swim.spatial.SpatialMap<swim.structure.Value,​S,​swim.structure.Value>
      • move

        public swim.structure.Value move​(swim.structure.Value key,
                                         S oldShape,
                                         S newShape,
                                         swim.structure.Value newValue)
        Specified by:
        move in interface swim.spatial.SpatialMap<swim.structure.Value,​S,​swim.structure.Value>
      • remove

        public swim.structure.Value remove​(swim.structure.Value key,
                                           S shape)
        Specified by:
        remove in interface swim.spatial.SpatialMap<swim.structure.Value,​S,​swim.structure.Value>
      • clear

        public void clear()
        Specified by:
        clear in interface swim.spatial.SpatialMap<swim.structure.Value,​S,​swim.structure.Value>
      • iterator

        public swim.util.Cursor<swim.spatial.SpatialMap.Entry<swim.structure.Value,​S,​swim.structure.Value>> iterator​(S shape)
        Specified by:
        iterator in interface swim.spatial.SpatialMap<swim.structure.Value,​S,​swim.structure.Value>
      • iterator

        public swim.util.Cursor<swim.spatial.SpatialMap.Entry<swim.structure.Value,​S,​swim.structure.Value>> iterator()
        Specified by:
        iterator in interface Iterable<S>
      • keyIterator

        public swim.util.Cursor<swim.structure.Value> keyIterator()
        Specified by:
        keyIterator in interface swim.spatial.SpatialMap<swim.structure.Value,​S,​swim.structure.Value>
      • valueIterator

        public swim.util.Cursor<swim.structure.Value> valueIterator()
        Specified by:
        valueIterator in interface swim.spatial.SpatialMap<swim.structure.Value,​S,​swim.structure.Value>