Iterator.js 504 B

123456789101112131415161718192021222324
  1. /**
  2. * @see http://download.oracle.com/javase/6/docs/api/java/util/Iterator.html
  3. * @constructor
  4. * @private
  5. */
  6. export default class Iterator {
  7. /**
  8. * Returns true if the iteration has more elements.
  9. * @return {boolean}
  10. */
  11. hasNext() {}
  12. /**
  13. * Returns the next element in the iteration.
  14. * @return {Object}
  15. */
  16. next() {}
  17. /**
  18. * Removes from the underlying collection the last element returned by the
  19. * iterator (optional operation).
  20. */
  21. remove() {}
  22. }