|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.spy.memcached.internal.SingleElementInfiniteIterator<T>
public class SingleElementInfiniteIterator<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.
Constructor Summary | |
---|---|
SingleElementInfiniteIterator(T element)
Construct a iterator tat returns the input element an infinite number of times. |
Method Summary | |
---|---|
boolean |
hasNext()
|
T |
next()
|
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SingleElementInfiniteIterator(T element)
element
- the element that #next() should returnMethod Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<T>
public T next()
next
in interface java.util.Iterator<T>
public void remove()
remove
in interface java.util.Iterator<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |