Package net.spy.memcached.internal
Class SingleElementInfiniteIterator<T>
java.lang.Object
net.spy.memcached.internal.SingleElementInfiniteIterator<T>
- All Implemented Interfaces:
Iterator<T>
An iterator that returns a single element for as many elements as are needed
from the iterator; in other words, #hasNext() never returns false.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSingleElementInfiniteIterator
(T element) Construct a iterator tat returns the input element an infinite number of times. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
element
-
-
Constructor Details
-
SingleElementInfiniteIterator
Construct a iterator tat returns the input element an infinite number of times.- Parameters:
element
- the element that #next() should return
-
-
Method Details