- java.lang.Object
-
- swim.spatial.SpatialValueMap<K,S,V>
-
- All Implemented Interfaces:
Iterable<SpatialMap.Entry<K,S,V>>
,SpatialMap<K,S,V>
- Direct Known Subclasses:
SpatialDataView
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<Value,S,Value> inner, Form<K> keyForm, Form<V> valueForm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(Object keyObject)
boolean
containsKey(K keyObject, S shape)
boolean
containsValue(Object valueObject)
boolean
equals(Object other)
V
get(Object keyObject)
V
get(K keyObject, S shape)
int
hashCode()
SpatialMap<Value,S,Value>
inner()
boolean
isEmpty()
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)
Form<K>
keyForm()
<K2> SpatialValueMap<K2,S,V>
keyForm(Form<K2> keyForm)
Iterator<K>
keyIterator()
V
move(K keyObject, S oldShape, S newShape, V newObject)
V
put(K keyObject, S shape, V newObject)
V
remove(K keyObject, S shape)
int
size()
String
toString()
<V2> SpatialValueMap<K,S,V2>
valueClass(Class<V2> valueClass)
Form<V>
valueForm()
<V2> SpatialValueMap<K,S,V2>
valueForm(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
-
-
-
-
Method Detail
-
inner
public SpatialMap<Value,S,Value> inner()
-
keyForm
public <K2> SpatialValueMap<K2,S,V> keyForm(Form<K2> keyForm)
-
keyClass
public <K2> SpatialValueMap<K2,S,V> keyClass(Class<K2> keyClass)
-
valueForm
public <V2> SpatialValueMap<K,S,V2> valueForm(Form<V2> valueForm)
-
valueClass
public <V2> SpatialValueMap<K,S,V2> valueClass(Class<V2> valueClass)
-
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 keyObject, S shape)
- Specified by:
containsKey
in interfaceSpatialMap<K,S,V>
-
containsKey
public boolean containsKey(Object keyObject)
- Specified by:
containsKey
in interfaceSpatialMap<K,S,V>
-
containsValue
public boolean containsValue(Object valueObject)
- Specified by:
containsValue
in interfaceSpatialMap<K,S,V>
-
put
public V put(K keyObject, S shape, V newObject)
- Specified by:
put
in interfaceSpatialMap<K,S,V>
-
move
public V move(K keyObject, S oldShape, S newShape, V newObject)
- Specified by:
move
in interfaceSpatialMap<K,S,V>
-
clear
public void clear()
- Specified by:
clear
in interfaceSpatialMap<K,S,V>
-
iterator
public Iterator<SpatialMap.Entry<K,S,V>> iterator(S shape)
- Specified by:
iterator
in interfaceSpatialMap<K,S,V>
-
iterator
public Iterator<SpatialMap.Entry<K,S,V>> iterator()
-
keyIterator
public Iterator<K> keyIterator()
- Specified by:
keyIterator
in interfaceSpatialMap<K,S,V>
-
valueIterator
public Iterator<V> valueIterator()
- Specified by:
valueIterator
in interfaceSpatialMap<K,S,V>
-
-