ACMNexus / google-collections

Automatically exported from code.google.com/p/google-collections
Apache License 2.0
0 stars 0 forks source link

Factory method for creating a Map<T,U> from a LIst<T> and a List<U> #208

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
An enhancement to simplify creating a new map from two lists, one for the
keys and one for the values.  It could do the required list length checking
and null key checking.
If the map type created does not allow duplicate keys, an exception could
be thrown if the key list contains duplicate values; the same should happen
if the map doesn't allow null keys or values.

Original issue reported on code.google.com by edbe...@charter.net on 22 Jul 2009 at 4:36

GoogleCodeExporter commented 8 years ago
This has come up several times before. We think this is an inferior way to 
construct
a map. It is difficult to see and verify that the right key is going with the 
right
value.

Original comment by kevin...@gmail.com on 22 Jul 2009 at 5:53

GoogleCodeExporter commented 8 years ago

Original comment by kevin...@gmail.com on 7 Aug 2009 at 9:10