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