RE: how to access a specific object inside a List efficiently

2003-02-05 Thread Derek Shen
they can. e.g. getValues() instead of values(), getKeys instead of keys()... From: "John Espey" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: RE: how to ac

RE: how to access a specific object inside a List efficiently

2003-02-05 Thread John Espey
] Subject: RE: how to access a specific object inside a List efficiently Because there's no getter method for the values. To iterate through the values of a map: If there's getValues() method, "values" can be put as the property. >From: "John Espey" <[EMAIL

RE: how to access a specific object inside a List efficiently

2003-02-05 Thread Derek Shen
OTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: RE: how to access a specific object inside a List efficiently Date: Wed, 5 Feb 2003 13:13:27 -0600 what's wrong with the values() method? -Original Message- From: Derek Shen [mailto:[EMAIL PR

RE: how to access a specific object inside a List efficiently

2003-02-05 Thread John Espey
what's wrong with the values() method? -Original Message- From: Derek Shen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 05, 2003 1:06 PM To: [EMAIL PROTECTED] Subject: RE: how to access a specific object inside a List efficiently How to iterate through the values of

RE: how to access a specific object inside a List efficiently

2003-02-05 Thread Derek Shen
How to iterate through the values of a Map? There's no getValues() method in Map. Thanks! From: "Derek Shen" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: RE: how to access a specific object in

RE: how to access a specific object inside a List efficiently

2003-02-05 Thread Derek Shen
Thanks guys! I am trying to use TreeMap now. From: [EMAIL PROTECTED] Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: RE: how to access a specific object inside a List efficiently Date: Wed, 5 Feb 2003 13:07:54 -0500 TreeMap should s

RE: how to access a specific object inside a List efficiently

2003-02-05 Thread pqin
Struts Users Mailing List' Subject: RE: how to access a specific object inside a List efficiently The problem you're hitting is that there's really no concept of a "key" in a List - it's just an ordered collection of objects. The closest you'd find is the contains

RE: how to access a specific object inside a List efficiently

2003-02-05 Thread Rob Kischuk
The problem you're hitting is that there's really no concept of a "key" in a List - it's just an ordered collection of objects. The closest you'd find is the contains( Object o) method, but that looks for the entire object and not just a key. I would suggest using a HashMap for what you're lookin