Darryl,

On 29/10/2011 8:44 AM, Darryl Mocek wrote:
Hello. Please review this patch to add empty sorted set to the
Collections class. Test case provided.

Webrev: http://cr.openjdk.java.net/~mduigou/4533691/1/webrev/

This was an RFE from 2001 - pre-generics. I don't think it makes sense to add to the pre-generics pollution by defining EMPTY_SORTED_SET.

Additional Notes to Reviewers:
The sets resulting from tailSet() headSet() and subSet() normally
include the range which was used to create them. Using these methods
with emptySortedSet() does not currently set a range on the resulting sets.

What is the range on an empty set?

David
-----

Thanks,
Darryl

Reply via email to