How to get the next element of a SortedSet?

Posted by Pentium10 on Stack Overflow See other posts from Stack Overflow or by Pentium10
Published on 2010-05-27T20:51:56Z Indexed on 2010/05/27 21:01 UTC
Read the original article Hit count: 156

Filed under:
|

I have a SortedSet holding my ordered data.

I use the .first() method to return the first record, and pass it to another window.
When the other window finishes I get an event called, and I want to pass the next from the SortedSet to the window, so how to move to the next element?

launchWindow(this.set.first());

Then I have this:

onActivityResult(...) {
 if (this.set.hasNext()) launchWindow(this.set.next());//hasNext/next doesn't exists in the current context for SortedSet
}

What options I have?

© Stack Overflow or respective owner

Related posts about java

Related posts about sortedset