Hi all,
I made some minor improvements to the MultiMap/MultiHashMap conversion
in CVS (collections.sourceforge.net), and I updated the documentation.
The new MultiMap is very convenient in its generic form. While it does
not implement java.util.Map, the live backing map is available if
necessary. For example:
Number key = new Integer(5);
MultiMap<Number,String> mhm = new MultiHashMap<Number,String>();
mhm.put(key, "A");
mhm.put(key, "B");
mhm.put(key, "C");
Collection<String> coll = mhm.get(key);
Map<Number,Collection<String>> backingMap = coll.getMap();
Collection<String> other = backingMap.get(key);
assert (coll.equals(other));
I've been using the new generics-enabled Collections in some projects
and they are delightful! Try them out, everybody.
John Watkinson
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]