Constructor and Description |
---|
SingleElementInfiniteIterator(T element)
Construct a iterator tat returns the input element an infinite number of
times.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
T |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public SingleElementInfiniteIterator(T element)
element
- the element that #next() should returnCopyright © 2015. All rights reserved.