commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Victor Volle <>
Subject [clazz] general question: return List or Array
Date Mon, 02 Dec 2002 14:13:52 GMT

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:   <>
For additional commands, e-mail: <>

View raw message