Note that this entire implementation makes the assumption that all elements which are in the map are also in this queue, and that all elements not in the queue are not in the map.
The benefits of creating our own queue are that (1) we can replace elements in the middle of the queue as part of copyEvictableEntry, and (2) the contains method is highly optimized for the current model.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|