Site icon Narayana Tutorial

SortedSet

SortedSet

  1. Object first ();
  2. Object last ();
  3. SortedSet headset (object o ) // returns sortedset, whose elements are less than the specified object.
  4. SortedSet tailset ( object o )//  returns the SortedSet, whose elements are greater than or equal to object.
  5. SortedSet subset ( object 01, object 02 ) ; //  returns the SortedSet, whose elements are greater than or equal to 01 & less than 02.
  6. Comparator comparator () // returns the Comparator object, that describes underlying sorting techniques. If we are depending on natural sorting order, then this method returns null