add peekFirst and peekLast methods to NavigableSet

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      It seems like NavigableSet ought to have null-returning peekFirst and peekLast methods. These would pair nicely with the existing null-returning pollFirst and pollLast methods that are already present. It would make NavigableSet more like Deque (which has null-returning peek* and poll* methods) and like NavigableMap (which has null-returning first/lastEntry and pollFirst/LastEntry methods).

            Assignee:
            Stuart Marks
            Reporter:
            Stuart Marks
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: