Re: [collections] MultiMaps...

2005-05-13 Thread Stephen Colebourne
A decorator like this is definitely the preferred solution. Its been suggested before, but no one has yet had the itch to code it ;-) Stephen James Carman wrote: Upon further thought, why do we even have a class like MultiHashMap? Couldn't we write a generic MultiMap implementation that wraps ano

RE: [collections] MultiMaps...

2005-05-13 Thread James Carman
Upon further thought, why do we even have a class like MultiHashMap? Couldn't we write a generic MultiMap implementation that wraps another map and provides the "multiple" functionality? public class MapUtils { ... public static MultiMap multiMap( Map implementation ); public static MultiMap