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(),value);

HTH.

  Owen.

On Thu, 21 May 2020 at 09:06, Ernie Rael <err...@raelity.com> wrote:

> 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
> using libraries...
>
> -ernie
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>

-- 
I'll cut your code at an intensity and from a place of my own choosing.
Clique Space(TM). Anima ex machina.

Reply via email to