com.ideanest.util
Class WrapperMultiMap

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

public class WrapperMultiMap
extends CollectionValuedMultiMap

Insert the type's description here.

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.CollectionValuedMultiMap
CollectionValuedMultiMap.ClonedCollectionFactory, CollectionValuedMultiMap.CollectionFactory
 
Nested classes inherited from class com.ideanest.util.MultiMap
MultiMap.Entry
 
Constructor Summary
WrapperMultiMap()
           
WrapperMultiMap(java.util.Collection valuesPrototype)
           
WrapperMultiMap(CollectionValuedMultiMap.CollectionFactory collectionFactory)
           
WrapperMultiMap(java.util.Map base)
           
WrapperMultiMap(java.util.Map base, java.util.Collection valuesPrototype)
           
WrapperMultiMap(java.util.Map base, CollectionValuedMultiMap.CollectionFactory collectionFactory)
           
 
Method Summary
 boolean add(java.lang.Object key, java.lang.Object value)
           
 void clear()
           
 java.util.Set entrySet()
           
 java.util.Collection get(java.lang.Object key)
           
 boolean getDeleteEmptyKeys()
           
 java.util.Set keySet()
           
 boolean remove(java.lang.Object key)
           
 boolean remove(java.lang.Object key, java.lang.Object value)
           
 void setDeleteEmptyKeys(boolean flag)
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class com.ideanest.util.AbstractMultiMap
addAll, addAll, contains, containsKey, containsValue, equals, hashCode, isEmpty, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WrapperMultiMap

public WrapperMultiMap()

WrapperMultiMap

public WrapperMultiMap(CollectionValuedMultiMap.CollectionFactory collectionFactory)

WrapperMultiMap

public WrapperMultiMap(java.util.Collection valuesPrototype)

WrapperMultiMap

public WrapperMultiMap(java.util.Map base)

WrapperMultiMap

public WrapperMultiMap(java.util.Map base,
                       CollectionValuedMultiMap.CollectionFactory collectionFactory)

WrapperMultiMap

public WrapperMultiMap(java.util.Map base,
                       java.util.Collection valuesPrototype)
Method Detail

add

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

clear

public void clear()
Specified by:
clear in interface MultiMap
Overrides:
clear in class AbstractMultiMap

entrySet

public java.util.Set entrySet()

get

public java.util.Collection get(java.lang.Object key)

getDeleteEmptyKeys

public boolean getDeleteEmptyKeys()

keySet

public java.util.Set keySet()

remove

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

remove

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

setDeleteEmptyKeys

public void setDeleteEmptyKeys(boolean flag)

size

public int size()
Specified by:
size in interface MultiMap
Overrides:
size in class AbstractMultiMap

toString

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