title: Java Iterator start from specific element of sorted set
body: <p>I have a sorted set in Java (eg a TreeSet).
  I want to have an iterator starting from a specific element of the tree and be able to go to the next or previous element (in the order of sorting).</p>
  
  <p>Is there any idea of how to do this without implementing my own data structure??</p>
  
  <p>Thanks</p>
  
  <hr>
  
  <p><strong>EDIT:</strong> </p>
  
  <p>I forgot to mention that I want to do it with a naive way (if there is any) since I care about perfomance. If I had access to the implementation of the tree it would take O(1) time to do that. I want something similar.</p>
  
  <p>Also feel free to suggest other (3rd party) implementations of Sorted Trees in java that supports this.</p>