Re: OT: java map where key is in the value

2020-05-20 Thread Owen Thomas
On Thu, 21 May 2020 at 12:57, Ernie Rael wrote: > On 5/20/2020 7:43 PM, Owen Thomas wrote: > > Hi Ernie. > > > > I have desired such an implementation; this would be a map that worked > > a little more like a set. However, I am unaware of such a beast in the > > Java SE API, and in this case, one

Re: OT: java map where key is in the value

2020-05-20 Thread Ernie Rael
On 5/20/2020 7:43 PM, Owen Thomas wrote: Hi Ernie. I have desired such an implementation; this would be a map that worked a little more like a set. However, I am unaware of such a beast in the Java SE API, and in this case, one just grabs the key that the object generates in a put through the

Re: OT: java map where key is in the value

2020-05-20 Thread Owen Thomas
Hi Ernie. I have desired such an implementation; this would be a map that worked a little more like a set. However, I am unaware of such a beast in the Java SE API, and in this case, one just grabs the key that the object generates in a put through the use of a getKey method: map.put(value.getKey(

OT: java map where key is in the value

2020-05-20 Thread Ernie Rael
Hi, I've have a vague memory of a map implementation where the key is extracted from the value on a put. I thought it was Java, but I can't find it. Am I hallucinating? More to the point, does anyone know of such a map. I'm only using a few methods, so I could make a wrapper; but I like usi