The navigableSet is a sub interface of SortedSet. It is available in java.util package in java. It is a like SortedSet. The navigable set has number of methods that will return the closest matching element given a search target. In navigable set, you can traverse in ascending of descending order. The iterater() method is used for ascending view of element of navigable set, while descendingIterator() method is used for descending view of element.
It provides different method for navigable set implementation. Given below...
descendingSet() - The descendingSet() method returns the data from the NavigableSet in descending order.
floor() -- The floor() method returns greater than or equal to the given element .
ceiling() -- The ceiling() method is used for accessing the less than or equal to the given element.
pollFirst() -- It returns first element and remove it from navigabeSet.
subSet() -- It returns a sub set of given navigable set elements.
higher() -- The higher() method returns least greater than element of given element.