You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Bill <bh...@collaborativefusion.com> on 2003/02/05 23:46:37 UTC

Change from Vector to List return types

Does anyone know offhand why the return types were changed in Torque?  




---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Change from Vector to List return types

Posted by Slava Zimine <sl...@japgod.mine.nu>.
performance

On Wed, Feb 05, 2003 at 05:46:37PM -0500, Bill wrote:
> Does anyone know offhand why the return types were changed in Torque?  
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Change from Vector to List return types

Posted by Scott Eade <se...@backstagetech.com.au>.
On 6/02/2003 9:46 AM, "Bill" <bh...@collaborativefusion.com> wrote:

> Does anyone know offhand why the return types were changed in Torque?

Of the top of my head:
1. It is better to return an interface rather than a specific type - hides
the implementation.
2. Vector is synchronized, ArrayList is not - better performance.

There may be other reasons.

Scott
-- 
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au
.Mac Chat/AIM: seade at mac dot com


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org