net.sf.mmm.util.collection.base
Class AbstractSimpleMap<KEY,VALUE>

java.lang.Object
  extended by net.sf.mmm.util.collection.base.AbstractSimpleMap<KEY,VALUE>
Type Parameters:
KEY - the type of keys maintained by this map.
VALUE - the type of mapped values.
All Implemented Interfaces:
Map<KEY,VALUE>
Direct Known Subclasses:
PojoMap, PojoPathMap

public abstract class AbstractSimpleMap<KEY,VALUE>
extends Object
implements Map<KEY,VALUE>

This is the abstract base implementation for a simple Map.
ATTENTION:
Here simple means that subclasses of this class only guarantee that the method Map.get(Object) and containsKey(Object) is properly implemented.

Since:
1.1.1
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
AbstractSimpleMap()
          The constructor.
 
Method Summary
 void clear()
          
 boolean containsKey(Object key)
          
 boolean containsValue(Object value)
          
 Set<Map.Entry<KEY,VALUE>> entrySet()
          
 boolean isEmpty()
          
 Set<KEY> keySet()
          
 VALUE put(KEY key, VALUE value)
          
 void putAll(Map<? extends KEY,? extends VALUE> m)
          
 VALUE remove(Object key)
          
 int size()
          
 Collection<VALUE> values()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, get, hashCode
 

Constructor Detail

AbstractSimpleMap

public AbstractSimpleMap()
The constructor.

Method Detail

clear

public void clear()

Specified by:
clear in interface Map<KEY,VALUE>

containsKey

public boolean containsKey(Object key)

Specified by:
containsKey in interface Map<KEY,VALUE>

containsValue

public boolean containsValue(Object value)

Specified by:
containsValue in interface Map<KEY,VALUE>

entrySet

public Set<Map.Entry<KEY,VALUE>> entrySet()

Specified by:
entrySet in interface Map<KEY,VALUE>

isEmpty

public boolean isEmpty()

Specified by:
isEmpty in interface Map<KEY,VALUE>

keySet

public Set<KEY> keySet()

Specified by:
keySet in interface Map<KEY,VALUE>

put

public VALUE put(KEY key,
                 VALUE value)

Specified by:
put in interface Map<KEY,VALUE>

putAll

public void putAll(Map<? extends KEY,? extends VALUE> m)

Specified by:
putAll in interface Map<KEY,VALUE>

remove

public VALUE remove(Object key)

Specified by:
remove in interface Map<KEY,VALUE>

size

public int size()

Specified by:
size in interface Map<KEY,VALUE>

values

public Collection<VALUE> values()

Specified by:
values in interface Map<KEY,VALUE>


Copyright © 2001-2010 mmm-Team. All Rights Reserved.