Found Key in Properties

Hi,

I'm very surprise but I can't find a function to get the key in Properties when I have the value (or at least the first).

Is it stupid to do that? There is an another way?

I can get all the keys in an Enumeration and then search my key inside but I suppose there is a faster way isnt it?

Thx.

[329 byte] By [DPJavaa] at [2007-10-2 22:13:24]
# 1
The aim of a Map is to handle key-value pairs. However, key must be unique while values needn't to be. It means that it is impossible to search the key if you know the value, because there can be more values which are exactly the same.Hope this helpsMiso
mvpa at 2007-7-14 1:30:14 > top of Java-index,Java Essentials,Java Programming...
# 2
If you have a frequent need for a reverse search then construct a reverse Map alongside the main one. If not then a sequential searrch is no big deal.
malcolmmca at 2007-7-14 1:30:14 > top of Java-index,Java Essentials,Java Programming...