|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.plt.iter.MutableSingletonIterator<T>
public class MutableSingletonIterator<T>
An Iterator over a 1-length list that supports removal by delegating to the given listener.
| Constructor Summary | |
|---|---|
MutableSingletonIterator(T element,
Runnable1<? super T> removeListener)
|
|
| Method Summary | ||
|---|---|---|
boolean |
hasNext()
|
|
static
|
make(T element,
Runnable1<? super T> removeListener)
Call the constructor (allows T to be inferred) |
|
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 MutableSingletonIterator(T element,
Runnable1<? super T> removeListener)
| Method 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>
public static <T> MutableSingletonIterator<T> make(T element,
Runnable1<? super T> removeListener)
T to be inferred)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||