Class IteratorLikeIterable.Itr

java.lang.Object
org.mozilla.javascript.IteratorLikeIterable.Itr
All Implemented Interfaces:
Iterator<Object>
Enclosing class:
IteratorLikeIterable

public final class IteratorLikeIterable.Itr extends Object implements Iterator<Object>
  • Constructor Details

    • Itr

      public Itr()
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<Object>
    • next

      public Object next()
      Specified by:
      next in interface Iterator<Object>
    • isDone

      public boolean isDone()
      Find out if "hasNext" returned done without invoking the function again.
    • setDone

      public void setDone(boolean done)
      Manually set "done." Used for exception handling in promises.