fastutil
fastutil copied to clipboard
Add computeIfAbsentAndMoveToFirst() method to linked hash maps
It's useful for implementing LRU caches.
To avoid blowing the number of methods, a boolean flag could be added to automatically "move to first" on any writes.