org.omnaest.utils.structure.map
Class MapAbstract<K,V>

java.lang.Object
  extended by org.omnaest.utils.structure.map.MapAbstract<K,V>
Type Parameters:
K -
V -
All Implemented Interfaces:
Serializable, Map<K,V>
Direct Known Subclasses:
IdentityLinkedHashMap, MapComposite, MapToMapAdapter, TypeToPropertynameMapAdapter

public abstract class MapAbstract<K,V>
extends Object
implements Map<K,V>, Serializable

This abstract Map implementation does implement all methods which rely only on other methods within the Map interface. This results in sub classes only to have to implement the really needed methods.

Author:
Omnaest
See Also:
Serialized Form

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

Constructor Detail

MapAbstract

public MapAbstract()
Method Detail

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<K,V>

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<K,V>

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<K,V>

putAll

public void putAll(Map<? extends K,? extends V> map)
Specified by:
putAll in interface Map<K,V>

entrySet

public Set<Map.Entry<K,V>> entrySet()
Specified by:
entrySet in interface Map<K,V>

size

public int size()
Specified by:
size in interface Map<K,V>

clear

public void clear()
Specified by:
clear in interface Map<K,V>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.