java.util
Class AbstractMap

java.lang.Object
  |
  +--java.util.AbstractMap
All Implemented Interfaces:
Map
Direct Known Subclasses:
HashMap, IdentityHashMap, TreeMap, WeakHashMap

public abstract synchronized class AbstractMap
extends Object
implements Map


Nested Class Summary
 
Nested classes inherited from class java.util.Map
Map.Entry
 
Constructor Summary
protected AbstractMap()
           
 
Method Summary
 void clear()
           
protected  Object clone()
           
 boolean containsKey(Object)
           
 boolean containsValue(Object)
           
abstract  Set entrySet()
           
 boolean equals(Object)
           
 Object get(Object)
           
 int hashCode()
           
 boolean isEmpty()
           
 Set keySet()
           
 Object put(Object, Object)
           
 void putAll(Map)
           
 Object remove(Object)
           
 int size()
           
 String toString()
          Returns the empty string.
 Collection values()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait
 

Constructor Detail

AbstractMap

protected AbstractMap()
Method Detail

size

public int size()
Specified by:
size in interface Map

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map

containsValue

public boolean containsValue(Object)
Specified by:
containsValue in interface Map

containsKey

public boolean containsKey(Object)
Specified by:
containsKey in interface Map

get

public Object get(Object)
Specified by:
get in interface Map

put

public Object put(Object,
                  Object)
Specified by:
put in interface Map

remove

public Object remove(Object)
Specified by:
remove in interface Map

putAll

public void putAll(Map)
Specified by:
putAll in interface Map

clear

public void clear()
Specified by:
clear in interface Map

keySet

public Set keySet()
Specified by:
keySet in interface Map

values

public Collection values()
Specified by:
values in interface Map

entrySet

public abstract Set entrySet()
Specified by:
entrySet in interface Map

equals

public boolean equals(Object)
Specified by:
equals in interface Map
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Map
Overrides:
hashCode in class Object

toString

public String toString()
Description copied from class: Object
Returns the empty string. It's here to satisfy javac.

Overrides:
toString in class Object

clone

protected Object clone()
                throws CloneNotSupportedException
CloneNotSupportedException