# Class: Iterator

## PDFNet. Iterator

#### new Iterator()

  Supports a simple iteration over a generic collection.

### Methods

#### assign()

  Copy Constructor

  ##### Returns:

  A promise that resolves to an object of type: "Iterator"

  Type
    PDFNet.Iterator

#### destroy()

  Destructor

#### hasNext()

  ##### Returns:

  A promise that resolves to true if the iterator can be successfully advanced to the next element; false if the iterator is no longer valid.

  Type
    boolean

#### next()

  Advances the iterator to the next element of the collection.

#### Search results