You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Victor Volle <vi...@gmxpro.net> on 2002/12/02 15:13:52 UTC
[clazz] general question: return List or Array
Hi,
I have a general question about the API.
Should the return types be Lists or Arrays?
If normal Lists are returned I client might
manipulate the List (imagine adding a method
to a class loaded by reflection??). We could
return immutable Lists or Arrays as in
java.lang.Class or in java.lang.reflect.Method.
What do you think?
-- Victor
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [clazz] general question: return List or Array
Posted by Dmitri Plotnikov <dp...@yahoo.com>.
Victor,
I guess my choice would be immutable lists.
- Dmitri
--- Victor Volle <vi...@gmxpro.net> wrote:
> Hi,
>
> I have a general question about the API.
> Should the return types be Lists or Arrays?
>
> If normal Lists are returned I client might
> manipulate the List (imagine adding a method
> to a class loaded by reflection??). We could
> return immutable Lists or Arrays as in
> java.lang.Class or in java.lang.reflect.Method.
>
> What do you think?
>
> -- Victor
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>