HasNextIterator<E> class

The HasNextIterator class wraps an Iterator and provides methods to iterate over an object using hasNext and next.

The HasNextIterator class wraps an Iterator and provides methods to iterate over an object using hasNext and next.

An HasNextIterator does not implement the Iterator interface.

Constructors

HasNextIterator ( Iterator _iterator )

Instance Properties

hasNext bool
read-only

Instance Methods

next ( ) → E