[SNMP4J] request
Xavi Ferró
xavi at vida-software.com
Wed Apr 20 08:39:59 CEST 2005
Hi all,
It was a recommendation using new Collections classes instead of Vector
one (where List, ArrayList and Collection is a part of this).
If you need a synchronized collection, then look at
java.util.Collections class. You can invoke the static methods:
static Collection synchronizedCollection(Collection c)
or
static List synchronizedList(List list)
- Xavi
> -----Original Message-----
> From: snmp4j-bounces at agentpp.org
> [mailto:snmp4j-bounces at agentpp.org] On Behalf Of Frank Fock
> Sent: martes, 19 de abril de 2005 22:16
> To: Kevin J. Schmidt
> Cc: snmp4j at agentpp.org
> Subject: Re: [SNMP4J] request
>
>
> I think both are pretty exchangable, except that ArrayList is not
> synchronized but
> Vector is. So if you do not need synchronization, then ArrayList is
> preferred
> otherwise Vector.
>
> Best regards,
> Frank
>
> Kevin J. Schmidt wrote:
>
> >Isn't Vector preferred over ArrayList or is it vice versa? I
> can never
> >keep it straight.
> >
> >On 4/19/05, harrie hazewinkel <harrie at lisanza.net> wrote:
> >
> >
> >>David Hustace wrote:
> >>
> >>
> >>>On Apr 19, 2005, at 9:32 AM, Fabrice Bacchella wrote:
> >>>
> >>>
> >>>
> >>>>Vector is supposed to be deprecated. ArrayList should be used
> >>>>instead.
> >>>>
> >>>>
> >>>Vector deprecated in Java? I just checked 1.5. Not deprecated
> >>>there.
> >>>
> >>>
> >>I agree. Looked also, but believed I was missing something.
> >>
> >>--
> >>Harrie
> >>
> >>Internet Development Consulting
> >>mailto: harrie(at)lisanza.net http://www.lisanza.net/
> >>skype/aim/yahoo: hhazewinkel http://www.mod-snmp.com/
> >>------------------------------------------------------------------
> >>Author of MOD-SNMP, enabling SNMP management of Apache HTTP server
> >>_______________________________________________
> >>SNMP4J mailing list
> >>SNMP4J at agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j
> >>
> >>
> >>
> >
> >
> >
> >
>
>
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j
>
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.308 / Virus Database: 266.9.17 - Release Date: 19/04/2005
>
>
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.17 - Release Date: 19/04/2005
More information about the SNMP4J
mailing list