This interface defines properties and methods for iterating over a collection; it provides the #next predicate and the #value read-only property. Some Iterators also provide key property values along with each value.
Gets the total number of items in the iterated collection.
Returns itself, which is convenient for code that expects an Iterable instead of an Iterator.
Gets the current index to the item in the collection, assuming #next has just returned true.
Gets the current item in the collection, assuming #next has just returned true.
Return the first item in the collection, or null if there is none.
any
Call this method to advance the iterator to the next item in the collection.
boolean
Start this iterator all over again.
any