commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [collection] MultiHashMap class improvements
Date Wed, 09 Oct 2002 12:43:27 GMT

I use MultiHashMap class.  I added a few improvements :

1) fix bug  9573 :
MultiHashMap.values()  is backed by map now .
 (update method values() + add interns class Values & ValueIterator)

2) fix another bug : ArrayList can be put in MultiHashMap as value now
 (update method put(Object,Object) and add method

3)update method clone() : each Collection container is cloned now.

4)add two useful methods in MultiMap & MultiHashMap class:

public boolean contains( Object key, Object item )
public void putAll( Object key, Collection collection )

5) add a method protected Collection getNewInstanceContainer( int size )
So it will be possible later to create a AbstractMultiMap?

JUnit tests are OK,

Any comments are welcome


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message