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
]
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
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
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
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
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
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
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
8 matches
Mail list logo