commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@btopenworld.com
Subject Re: [clazz] general question: return List or Array
Date Mon, 02 Dec 2002 16:13:20 GMT
Yes, Lists and Maps. Most implementations will return immutable Lists and Maps, but some will
return mutable ones.

After all, wouldn't it be nice to be able to add a property or operation to a Class (Clazz)
dynamically at runtime??

Stephen


>  from:    Dmitri Plotnikov <dplotnik@yahoo.com>
> Victor,
> 
> I guess my choice would be immutable lists.
> 
> - Dmitri
> 
> 
> --- Victor Volle <victor.volle@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:  
> > <mailto:commons-dev-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:commons-dev-help@jakarta.apache.org>
> > 
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> 
> --
> To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>
> 


--
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