|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object blog.WorldInProgress.UninstVarIterator
public class WorldInProgress.UninstVarIterator
Inner class for iterating over the list of uninstantiated variables.
It is like an ordinary iterator, but has an extra method
setValue
for instantiating the variable returned by
the last call to next
.
Constructor Summary | |
---|---|
WorldInProgress.UninstVarIterator()
|
Method Summary | |
---|---|
boolean |
hasNext()
|
java.lang.Object |
next()
Always returns an object of class VarWithDistrib. |
void |
remove()
The remove method is not supported, because the
only way to remove a variable from the list of uninstantiated
variables is to instantiate it. |
void |
setValue(java.lang.Object value)
Instantiates the last variable returned by next to
the given value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorldInProgress.UninstVarIterator()
Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
method is not supported, because the
only way to remove a variable from the list of uninstantiated
variables is to instantiate it.
remove
in interface java.util.Iterator
public void setValue(java.lang.Object value)
next
to
the given value. The variable must be supported by this
partial world, or a fatal error will occur.
java.lang.IllegalStateException
- if next
has not yet
been called, or if
setValue
has already
been called since the last call
to next
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |