Map as a return value? 2004-01-27 - By Erik Beijnoff
Back >2) Rather than copy it, if it's not going to change, return it wrapped in a >Collections.unmodifiableMap() wrapper. Then its safe and efficient for local or remote use.
*Exactly* what I am looking for. Strange that I haven't encountered that little feature before. I've wondered why the HttpServletRequest can return an immutable Map. Eh. Well, it's a big API, and I assume you learn something new everyday, even if it's propably something rather basic that I should've known by now.
Thanks also for the rest of your comments. Very informative.
Regards Erik Beijnoff
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
|
|