public static class PeekIterator.ElementaryPeekIterator<T> extends PeekIterator<T>
PeekIterator.ElementaryPeekIterator<T>, PeekIterator.SimplePeekIterator<T>| Modifier and Type | Field and Description |
|---|---|
protected T |
element
The element to return or NULL
|
closed, EMPTY, fetchedNextValue, next| Constructor and Description |
|---|
ElementaryPeekIterator(T element) |
| Modifier and Type | Method and Description |
|---|---|
protected T |
internalNext()
Returns the next or NULL if no next element is available
|
String |
toString() |
asList, asList, asSet, asSet, asSet, close, emptyIterator, hasNext, internalSilentNext, iterator, list, list, main, next, nextOrNull, numElements, numElements, peek, remove, toString, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEachRemainingforEach, spliteratorprotected T element
public ElementaryPeekIterator(T element)
protected T internalNext() throws Exception
PeekIteratorinternalNext in class PeekIterator<T>Exceptionpublic String toString()
toString in class PeekIterator<T>Copyright © 2018. All rights reserved.