org.granite.collections
Class BasicMap<K,V>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by org.granite.collections.BasicMap<K,V>
All Implemented Interfaces:
Externalizable, Serializable, Cloneable, Map<K,V>

public class BasicMap<K,V>
extends HashMap<K,V>
implements Externalizable, Serializable

Author:
Franck WOLFF
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
BasicMap()
           
BasicMap(Map<K,V> map)
           
 
Method Summary
static BasicMap<?,?> newInstance(Map<?,?> map)
           
 void readExternal(ObjectInput in)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

BasicMap

public BasicMap()

BasicMap

public BasicMap(Map<K,V> map)
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

newInstance

public static BasicMap<?,?> newInstance(Map<?,?> map)

toString

public String toString()
Overrides:
toString in class AbstractMap<K,V>