Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8012032

LinkedHashSet has no accessors for first and last items

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • None
    • core-libs
    • 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.

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: