-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
None
-
None
A DESCRIPTION OF THE REQUEST :
No way to access/modify first and last items in the linked list.
JUSTIFICATION :
You can at most create a subclass to indicate if you want objects at the end removed. This is supposed to be for a LRU cache implementation, but there is no way to access the entry being evicted in this way.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
This is supposed to be both a HashMap and a linked list, but nothing from the linked list is present. Access methods like LinkedList: getLast(), removeLast(), etc. should be there.
ACTUAL -
Missing.
No way to access/modify first and last items in the linked list.
JUSTIFICATION :
You can at most create a subclass to indicate if you want objects at the end removed. This is supposed to be for a LRU cache implementation, but there is no way to access the entry being evicted in this way.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
This is supposed to be both a HashMap and a linked list, but nothing from the linked list is present. Access methods like LinkedList: getLast(), removeLast(), etc. should be there.
ACTUAL -
Missing.
- duplicates
-
JDK-4848853 (coll) Modify LinkedHashMap and LinkedHashSet to include first() and last()
-
- Open
-