|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinfo.javelot.functionalj.util.EmptyIterator<T>
T - the type over which to iterate.public class EmptyIterator<T>
Empty iterator that is used for null Lists.
| Constructor Summary | |
|---|---|
EmptyIterator()
|
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Returns false. |
T |
next()
Returns null. |
void |
remove()
Throws a UnsupportedOperationException. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmptyIterator()
| Method Detail |
|---|
public boolean hasNext()
false.
hasNext in interface Iterator<T>public T next()
null.
next in interface Iterator<T>public void remove()
UnsupportedOperationException.
remove in interface Iterator<T>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||