commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julien.bu...@achatpro.com
Subject [collection] MultiHashMap class improvements
Date Wed, 09 Oct 2002 12:43:27 GMT
Hi.

I use MultiHashMap class.  I added a few improvements :

1) fix bug  9573 : http://issues.apache.org/bugzilla/show_bug.cgi?id=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
readObject(ObjectInputStream))

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

JB





--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message