Re: Curly Generics Question - Update
Re: Curly Generics Question - Update
- Subject: Re: Curly Generics Question - Update
- From: Anjo Krank <email@hidden>
- Date: Sat, 16 May 2009 06:47:36 +0200
Am 16.05.2009 um 01:29 schrieb Mike Schrag:
Map< String, List< String >> correctHeaders = new HashMap< String,
List< String > >();
btw, this is what i was saying that the only typesafe way to do this
is to copy the original headers -- so you would do new
HashMap<String, List<String>>(originalHeaders) and then you'd have a
properly typesafe <String, List<String>> that you can happily insert
into whatever List<String> subtypes you want inside of
createRequest. But it takes a copy to do it, which kind of sucks.
As the whole point of this stupid and annoying API change to Map was
that you could maintain order of the parameters, I'd at least use a
TreeMap :)
Cheers, Anjo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden