- java.lang.Object
-
- swim.spatial.SpatialValueMap<K,S,V>
-
- All Implemented Interfaces:
Iterable<SpatialMap.Entry<K,S,V>>,SpatialMap<K,S,V>
public class SpatialValueMap<K,S,V> extends Object implements SpatialMap<K,S,V>
-
-
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 SpatialValueMap(SpatialMap<swim.structure.Value,S,swim.structure.Value> inner, swim.structure.Form<K> keyForm, swim.structure.Form<V> valueForm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object keyObject)booleancontainsKey(K keyObject, S shape)booleancontainsValue(Object valueObject)booleanequals(Object other)Vget(Object keyObject)Vget(K keyObject, S shape)inthashCode()SpatialMap<swim.structure.Value,S,swim.structure.Value>inner()booleanisEmpty()Iterator<SpatialMap.Entry<K,S,V>>iterator()Iterator<SpatialMap.Entry<K,S,V>>iterator(S shape)<K2> SpatialValueMap<K2,S,V>keyClass(Class<K2> keyClass)swim.structure.Form<K>keyForm()<K2> SpatialValueMap<K2,S,V>keyForm(swim.structure.Form<K2> keyForm)Iterator<K>keyIterator()Vmove(K keyObject, S oldShape, S newShape, V newObject)Vput(K keyObject, S shape, V newObject)Vremove(K keyObject, S shape)intsize()StringtoString()<V2> SpatialValueMap<K,S,V2>valueClass(Class<V2> valueClass)swim.structure.Form<V>valueForm()<V2> SpatialValueMap<K,S,V2>valueForm(swim.structure.Form<V2> valueForm)Iterator<V>valueIterator()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
inner
protected SpatialMap<swim.structure.Value,S,swim.structure.Value> inner
-
keyForm
protected swim.structure.Form<K> keyForm
-
valueForm
protected swim.structure.Form<V> valueForm
-
-
Constructor Detail
-
SpatialValueMap
public SpatialValueMap(SpatialMap<swim.structure.Value,S,swim.structure.Value> inner, swim.structure.Form<K> keyForm, swim.structure.Form<V> valueForm)
-
-
Method Detail
-
inner
public SpatialMap<swim.structure.Value,S,swim.structure.Value> inner()
-
keyForm
public swim.structure.Form<K> keyForm()
-
keyForm
public <K2> SpatialValueMap<K2,S,V> keyForm(swim.structure.Form<K2> keyForm)
-
keyClass
public <K2> SpatialValueMap<K2,S,V> keyClass(Class<K2> keyClass)
-
valueForm
public swim.structure.Form<V> valueForm()
-
valueForm
public <V2> SpatialValueMap<K,S,V2> valueForm(swim.structure.Form<V2> valueForm)
-
valueClass
public <V2> SpatialValueMap<K,S,V2> valueClass(Class<V2> valueClass)
-
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 keyObject, S shape)
- Specified by:
containsKeyin interfaceSpatialMap<K,S,V>
-
containsKey
public boolean containsKey(Object keyObject)
- Specified by:
containsKeyin interfaceSpatialMap<K,S,V>
-
containsValue
public boolean containsValue(Object valueObject)
- Specified by:
containsValuein interfaceSpatialMap<K,S,V>
-
put
public V put(K keyObject, S shape, V newObject)
- Specified by:
putin interfaceSpatialMap<K,S,V>
-
move
public V move(K keyObject, S oldShape, S newShape, V newObject)
- Specified by:
movein interfaceSpatialMap<K,S,V>
-
clear
public void clear()
- Specified by:
clearin interfaceSpatialMap<K,S,V>
-
iterator
public Iterator<SpatialMap.Entry<K,S,V>> iterator(S shape)
- Specified by:
iteratorin interfaceSpatialMap<K,S,V>
-
iterator
public Iterator<SpatialMap.Entry<K,S,V>> iterator()
-
keyIterator
public Iterator<K> keyIterator()
- Specified by:
keyIteratorin interfaceSpatialMap<K,S,V>
-
valueIterator
public Iterator<V> valueIterator()
- Specified by:
valueIteratorin interfaceSpatialMap<K,S,V>
-
-