NavigableSet Interface

  • Child Interface of SortedSet.
  • Defines several methods for navigation purpose.
  • Tree Set is the Implementation class of NavigableSet interface
  • Navigable Set can in version 1.6 version but TreeSet can in java 1.2 version
public interface NavigableSet<E> extends SortedSet<E> { }

Features of NavigableSet : (When to use NavigableSet)

  • Duplicates are not allowed.
  • Data is stored in some sorting order.
  • We can navigate through the set with the help of predefined methods in this interface

Leave a Comment