commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Victor Volle <victor.vo...@gmxpro.net>
Subject [clazz] general question: return List or Array
Date Mon, 02 Dec 2002 14:13:52 GMT
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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message