Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. int cur = availabilityMap.nextSetBit(0);
  2. V next = ids.get(cur);
  3. @Override
  4. public boolean hasNext()
  5. {
  6. return next != null;
  7. }
  8.  
  9. @Override
  10. public V next()
  11. {
  12. V ret = next;
  13. do {
  14. cur = availabilityMap.nextSetBit(cur + 1);
  15. next = ids.get(cur);
  16. } while (next == null && cur != -1);
  17. return ret;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement