Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

Latest commit

 

History

History
32 lines (25 loc) · 934 Bytes

Java_Iterator_API.md

File metadata and controls

32 lines (25 loc) · 934 Bytes

The purpose of the Iterator object is to provide programmatic access to the Java Iterator object. Below is a list of exposed object properties.

Iterator

For example usage of all available APIs, please see the unit tests.

/* No public constructor. */

/**
 * Returns true if the iteration has more elements.
 *
 * @returns {boolean}
 */
Iterator.prototype.hasNext = function () { /* ... */ };

/**
 * Returns the next element in the iteration.
 *
 * @returns {?}
 */
Iterator.prototype.next = function () { /* ... */ };

/**
 * Removes the current element from the underlying collection.
 */
Iterator.prototype.remove = function () { /* ... */ };