public class SingleElementInfiniteIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
| Constructor and Description |
|---|
SingleElementInfiniteIterator(T element)
Construct a iterator tat returns the input element an infinite number of
times.
|
public SingleElementInfiniteIterator(T element)
element - the element that #next() should return