Perfect! Thanks a lot!

On Apr 9, 11:30 pm, Peter Becker <[email protected]> wrote:
> I think you might be looking for something like this:
>
> http://google-collections.googlecode.com/svn/trunk/javadoc/index.html...
>
> or this:
>
> http://commons.apache.org/collections/apidocs/org/apache/commons/coll...
>
> HTH,
>     Peter
>
> On 10/04/10 13:58, tachoknight wrote:
>
>
>
> > Hi all-
>
> > I have a situation where I have to create a dictionary of strings, but
> > want to search on both the word and the definition, which in this case
> > will also be just a single word (e.g. "hello" ->  "bonjour"). Maps are
> > the logical choice, I think, but I would end up having to create two,
> > one for the English, and another for the French words because
> > Map.get() only searches on the key. That's fine, and I suppose I could
> > "double up" the keys, to have the french word list *and* the english
> > word list as keys, with their counterpoints as variables, but this
> > doesn't feel right and I think would probably be a worse solution, in
> > the long run, than just having two maps. Of course, I don't want to
> > maintain two maps with the same data, just reversed.
>
> > Is there a container type that allows for this sort of functionality?
> > I've got to imagine that it exists and I haven't found it yet; this
> > issue has got to come up frequently (or so I'd think).
>
> > Thanks for any info,
>
> > Tacho

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to