Module swim.spatial
Package swim.spatial

Interface SpatialMap<K,S,V>

All Superinterfaces:
Iterable<SpatialMap.Entry<K,S,V>>
All Known Subinterfaces:
ObservableSpatialMap<K,S,V>, SpatialData<K,S,V>, SpatialDataBinding<S>, SpatialLane<K,S,V>
All Known Implementing Classes:
QTree, QTreeMap, QTreeMap, QTreeMapView, SpatialDataModel, SpatialDataModel, SpatialDataProxy, SpatialDataView, SpatialLaneView, SpatialValueMap

public interface SpatialMap<K,S,V> extends Iterable<SpatialMap.Entry<K,S,V>>
  • Method Details

    • isEmpty

      boolean isEmpty()
    • size

      int size()
    • containsKey

      boolean containsKey(K key, S shape)
    • containsKey

      boolean containsKey(Object key)
    • containsValue

      boolean containsValue(Object value)
    • get

      V get(K key, S shape)
    • get

      V get(Object key)
    • put

      V put(K key, S shape, V newValue)
    • move

      V move(K key, S oldShape, S newShape, V newValue)
    • remove

      V remove(K key, S shape)
    • clear

      void clear()
    • iterator

      Iterator<SpatialMap.Entry<K,S,V>> iterator(S shape)
    • keyIterator

      Iterator<K> keyIterator()
    • valueIterator

      Iterator<V> valueIterator()