❮ Previous Next ❯

SortedSet

Methods specified in SortedSet

Basically, there are 6 methods available in SortedSet which are as follows:

  1. first(): it retrieves the first object from a given set of objects.
    For example,
    100
    102
    103
    104
    105
    107


    First (); //100
  2. last (); //107

    retrieves the last object;
  3. headset(Object o)
    retrieves one or more than one objects which are less than the specified object.
    e.g.
    headset(107) //[100,102,103,104,105]
  4. tailset(Object o)
    Retrieves one more than one objects which are greater than or equal to specified objects.
    e.g.
    tailset(103); //[103,104,105,107]
  5. subset(Object o1,objecto2)
    Retrieves one or more than one objects which are greater than or equal to Object o1 but less than Objecto2.
  6. comparator() :
    returns comparator objects which describe underlying sorting technique.
❮ Previous Next ❯



  Tutorials

Popular Links

Contact Us

address Plot No-741,2ND Floor
Opp. Bhagabati Temple,Jayadev Vihar
      Bhubaneswar-751013
      Email: info@silantechnology.com
      Phone: 0674-2361252
address
39877, sundale dr, apt#101, Fremont, California 94538, USA
       Phone: +1(262)388-7619

facebook twitter google linked in

© 2018 Silan Technology. All Rights Reserved