T - the collection element typepublic class ImmutableIterator<T> extends ImmutableIteratorBase<T> implements Iterator<T>
Iterator to provide functionality for the immutable classes.| Constructor and Description |
|---|
ImmutableIterator(T[] array,
int length,
int index)
Construct an
ImmutableIterator with the given array and length, and with the given starting index. |
| Modifier and Type | Method and Description |
|---|---|
T |
next()
Get the next element referenced by this
ImmutableIterator. |
checkNext, hasNextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, hasNext, removepublic ImmutableIterator(T[] array, int length, int index)
ImmutableIterator with the given array and length, and with the given starting index.array - the arraylength - the length (the number of array items to be considered part of the collection)index - the starting indexpublic T next()
ImmutableIterator.next in interface Iterator<T>NoSuchElementException - if there is no "next" elementCopyright © 2024. All rights reserved.