How can i implements a class like an HashMap but with 2 keys ?
- From: Rob <nomail@nomail>
- Date: Tue, 28 Aug 2007 14:02:21 +0200
Hi all,
i am a newbie, i want to create a class that works like an HashMap but
with 2 keys, get(key1,key2) -> value
I was thinking to create a class "Pair" that override equals and hashcode
and then store here the two keys and then a class that holds an HashMap
with Pair as key and the value class, can be this a solution? or what can
i use?
Bye thanks for the help
.
- Follow-Ups:
- Re: How can i implements a class like an HashMap but with 2 keys ?
- From: Roedy Green
- Re: How can i implements a class like an HashMap but with 2 keys ?
- From: Jan Thomä
- Re: How can i implements a class like an HashMap but with 2 keys ?
- Prev by Date: Re: Wipe utility
- Next by Date: Re: How can i implements a class like an HashMap but with 2 keys ?
- Previous by thread: Wipe utility
- Next by thread: Re: How can i implements a class like an HashMap but with 2 keys ?
- Index(es):
Relevant Pages
|