abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Sayre" <say...@gmail.com>
Subject Re: Model api changes
Date Fri, 14 Jul 2006 17:32:39 GMT
On 7/13/06, Garrett Rooney <rooneg@electricjellyfish.net> 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:

Use Collections.unmodifiableList() to make the return value, so a nice
convenient mutable list can be used internally.


Robert Sayre

View raw message