gov.sandia.cognition.collection
Class AbstractScalarMap.MapWrapper

java.lang.Object
  extended by java.util.AbstractMap<KeyType,Double>
      extended by gov.sandia.cognition.collection.AbstractScalarMap.MapWrapper
All Implemented Interfaces:
CloneableSerializable, Serializable, Cloneable, Map<KeyType,Double>
Enclosing class:
AbstractScalarMap<KeyType>

protected class AbstractScalarMap.MapWrapper
extends AbstractMap<KeyType,Double>
implements CloneableSerializable

Wrapper when using the asMap method

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
protected AbstractScalarMap.MapWrapper()
          Default constructor
 
Method Summary
 void clear()
           
 AbstractScalarMap.MapWrapper clone()
          Creates a new clone (shallow copy) of this object.
 boolean containsKey(Object key)
           
 Set<Map.Entry<KeyType,Double>> entrySet()
           
 Double get(Object key)
           
 boolean isEmpty()
           
 Set<KeyType> keySet()
           
 Double put(KeyType key, Double value)
           
 Double remove(Object key)
           
 int size()
           
 
Methods inherited from class java.util.AbstractMap
containsValue, equals, hashCode, putAll, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractScalarMap.MapWrapper

protected AbstractScalarMap.MapWrapper()
Default constructor

Method Detail

clone

public AbstractScalarMap.MapWrapper clone()
Description copied from interface: CloneableSerializable
Creates a new clone (shallow copy) of this object.

Specified by:
clone in interface CloneableSerializable
Overrides:
clone in class AbstractMap<KeyType,Double>
Returns:
A new clone (shallow copy) of this object.

size

public int size()
Specified by:
size in interface Map<KeyType,Double>
Overrides:
size in class AbstractMap<KeyType,Double>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<KeyType,Double>
Overrides:
isEmpty in class AbstractMap<KeyType,Double>

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<KeyType,Double>
Overrides:
containsKey in class AbstractMap<KeyType,Double>

get

public Double get(Object key)
Specified by:
get in interface Map<KeyType,Double>
Overrides:
get in class AbstractMap<KeyType,Double>

put

public Double put(KeyType key,
                  Double value)
Specified by:
put in interface Map<KeyType,Double>
Overrides:
put in class AbstractMap<KeyType,Double>

remove

public Double remove(Object key)
Specified by:
remove in interface Map<KeyType,Double>
Overrides:
remove in class AbstractMap<KeyType,Double>

clear

public void clear()
Specified by:
clear in interface Map<KeyType,Double>
Overrides:
clear in class AbstractMap<KeyType,Double>

keySet

public Set<KeyType> keySet()
Specified by:
keySet in interface Map<KeyType,Double>
Overrides:
keySet in class AbstractMap<KeyType,Double>

entrySet

public Set<Map.Entry<KeyType,Double>> entrySet()
Specified by:
entrySet in interface Map<KeyType,Double>
Specified by:
entrySet in class AbstractMap<KeyType,Double>