com.ideanest.util
Class AbstractMultiMap

java.lang.Object
  |
  +--com.ideanest.util.AbstractMultiMap
All Implemented Interfaces:
MultiMap, java.io.Serializable
Direct Known Subclasses:
CollectionValuedMultiMap

public abstract class AbstractMultiMap
extends java.lang.Object
implements MultiMap, java.io.Serializable

Version:
1.1, 2002-03-10
Author:
Piotr Kaminski (piotr@ideanest.com)
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class com.ideanest.util.MultiMap
MultiMap.Entry
 
Constructor Summary
AbstractMultiMap()
          AbstractMultiMap constructor comment.
 
Method Summary
 boolean add(java.lang.Object key, java.lang.Object value)
           
 boolean addAll(java.util.Map map)
           
 boolean addAll(MultiMap map)
           
 void clear()
           
 boolean contains(java.lang.Object key, java.lang.Object value)
           
 boolean containsKey(java.lang.Object key)
           
 boolean containsValue(java.lang.Object value)
           
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 boolean isEmpty()
           
 boolean remove(java.lang.Object key)
           
 boolean remove(java.lang.Object key, java.lang.Object value)
           
 int size()
           
 java.lang.String toString()
           
 java.util.Collection values()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ideanest.util.MultiMap
entrySet, get, keySet
 

Constructor Detail

AbstractMultiMap

public AbstractMultiMap()
AbstractMultiMap constructor comment.

Method Detail

add

public boolean add(java.lang.Object key,
                   java.lang.Object value)
Specified by:
add in interface MultiMap

addAll

public boolean addAll(MultiMap map)
Specified by:
addAll in interface MultiMap

addAll

public boolean addAll(java.util.Map map)
Specified by:
addAll in interface MultiMap

clear

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

contains

public boolean contains(java.lang.Object key,
                        java.lang.Object value)
Specified by:
contains in interface MultiMap

containsKey

public boolean containsKey(java.lang.Object key)
Specified by:
containsKey in interface MultiMap

containsValue

public boolean containsValue(java.lang.Object value)
Specified by:
containsValue in interface MultiMap

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface MultiMap
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface MultiMap
Overrides:
hashCode in class java.lang.Object

isEmpty

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

remove

public boolean remove(java.lang.Object key)
Specified by:
remove in interface MultiMap

remove

public boolean remove(java.lang.Object key,
                      java.lang.Object value)
Specified by:
remove in interface MultiMap

size

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

values

public java.util.Collection values()
Specified by:
values in interface MultiMap