T - the collection element typepublic class ImmutableIteratorBase<T> extends Object
Iterator for the immutable classes. Holds a reference
to the collection array and length.| Modifier and Type | Method and Description |
|---|---|
T |
checkNext()
Check whether the iterator has more elements and if so, return the corresponding array item.
|
boolean |
hasNext()
Test whether the iterator has any more elements.
|
public boolean hasNext()
true if there is at least one element availablepublic T checkNext()
NoSuchElementException - if there are no more elementsCopyright © 2021. All rights reserved.