|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.plt.iter.EmptyIterator<T>
public class EmptyIterator<T>
An Iterator over a 0-length list.
| Field Summary | |
|---|---|
static EmptyIterator<java.lang.Void> |
INSTANCE
|
| Method Summary | ||
|---|---|---|
boolean |
hasNext()
|
|
static
|
make()
Return a singleton, cast to the appropriate type. |
|
T |
next()
|
|
void |
remove()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final EmptyIterator<java.lang.Void> INSTANCE
| 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> EmptyIterator<T> make()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||