I'm looking for a Java LIFO structure with unique values. Furthermore it should promote an already inserted value to the front on reinsertion. It would be useful to track the order of focused windows for example.
I know that it isn't really hard to implement by extending or using Stack
or LinkedHashSet
, but maybe I missed an already existing implementation in the standard Java classes.