On 7/13/06, Garrett Rooney <[EMAIL PROTECTED]> wrote:
Sure, but "unmodifiableList()" gives some indication to the caller that they can't modify the list and expect it to change something. The current method name isn't nearly as clear about such things, and the javadoc doesn't specify.
Well sure, note it the Javadoc like the servlet API does for getParameterMap: <http://java.sun.com/products/servlet/2.5/docs/servlet-2_5-mr2/javax/servlet/ServletRequest.html#getParameterMap()> Use Collections.unmodifiableList() to make the return value, so a nice convenient mutable list can be used internally. -- Robert Sayre
