hdbeukel / james-core

Core module of the JAMES framework
Apache License 2.0
6 stars 5 forks source link

Return navigable set views of IDs in sorted subset solutions #6

Closed hdbeukel closed 9 years ago

hdbeukel commented 9 years ago

Currently, views of selected, unselected and all IDs in a subset solution are general sets. It would be better to return navigable set views in case of ordered IDs (which are then stored in tree sets), so that users can cast the returned set and call navigable set specific methods.

The documentation should clearly mention that it is safe to cast the views to a navigable set in case of ordered IDs.