-
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).