JDK-4533691 : (coll) Please add Collections.EMPTY_SORTED_SET
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util:collections
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2001-11-30
  • Updated: 2020-05-01
  • Resolved: 2012-05-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8 b14Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description

Name: rmT116609			Date: 11/30/2001



I request having a field  EMPTY_SORTED_SET in Collections, just like EMPTY_LIST,
EMPTY_MAP and EMPTY_SET. I right now have a function with a parameter type 
SortedSet, and I want to provide it with an empty set.
(Review ID: 136503) 
======================================================================

Comments
Core-libs-dev review threads: http://mail.openjdk.java.net/pipermail/core-libs-dev/2011-October/008034.html http://mail.openjdk.java.net/pipermail/core-libs-dev/2011-November/008081.html
01-05-2020

EVALUATION Will investigate adding Collections.emptySortedSet method. Adding the field is not necessary.
16-11-2011