struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Oberlander <Jeff.Oberlan...@onename.com>
Subject RE: Are Vectors in a FormAction set to null after a user has subm itted a form?
Date Fri, 01 Feb 2002 19:43:34 GMT
Vector has been refactored to implement List (which extends Collection) - so
it is part of the Collection classes.  The differnece is just
synchronization, which may be necessary in certain cases.  They both have
their place.

-----Original Message-----
From: Borislav Iordanov [mailto:borislav@kobrix.com]
Sent: Friday, February 01, 2002 11:35 AM
To: Struts Users Mailing List
Subject: Re: Are Vectors in a FormAction set to null after a user has
submitted a form?


Well, for one thing, Vectors are synchronized and ArrayLists aren't. So the
latter are faster (I've heard something like 20% faster) and preferable when
you don't need synchronization. Same goes for Hashtable vs. HashMap and in
general old vs new collection classes.

Boris

On Fri, 01 Feb 2002, you wrote:
> Hi Chuck,
> 
> I use Vector all the time. I'm curious why who feel that List/ArrayList is
> preferable.
> 
> Dave D
> 
> 
> ----- Original Message -----
> From: "Chuck Cavaness" <struts-user@japache.org>
> To: <struts-user@jakarta.apache.org>
> Sent: Friday, February 01, 2002 2:37 AM
> Subject: Re: Are Vectors in a FormAction set to null after a user has
> submitted a form?
> 
> 
> >
> > p.s. Is anyone really using the Vector class anymore? Why aren't you
using
> List/ArrayList? Just curious.
> > --
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message