I know both the IdentityHashSet
(via Collections#newSetFromMap(Map)
)and the LinkedHashSet
. However, what I need is a combination of the two, a LinkedIdentityHashSet
. I could not find any ready-made solution on the net. Anybody knows how to tweak this?
Thanks for advice!