JML

java.util
Class AbstractMap

java.lang.Object
  extended byjava.util.AbstractMap
All Implemented Interfaces:
Map
Direct Known Subclasses:
HashMap, TreeMap

public abstract class AbstractMap
extends Object
implements Map


Nested Class Summary
static class AbstractMap.SimpleEntry
           
static class AbstractMap.SimpleImmutableEntry
           
 
Field Summary
(package private)  Set keySet
           
(package private)  Collection values
           
 
Constructor Summary
protected AbstractMap()
           
 
Method Summary
 void clear()
           
protected  Object clone()
           
 boolean containsKey(Object)
           
 boolean containsValue(Object)
           
abstract  Set entrySet()
           
private static boolean eq(Object, Object)
           
 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()
           
 Collection values()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

keySet

transient volatile Set keySet

values

transient volatile Collection values
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()
Overrides:
toString in class Object

clone

protected Object clone()
                throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException

eq

private static boolean eq(Object,
                          Object)

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.