|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - Type of object within iteratorpublic interface MutableIterator<T>
Extension of iterator that has a set method to replace the last element access via the iterator with a new value.
| Method Summary | |
|---|---|
void |
set(T newVal)
Replaces the last element accessed via the iterator (usually via .next()) with newVal. |
| Methods inherited from interface java.util.Iterator |
|---|
hasNext, next, remove |
| Method Detail |
|---|
void set(T newVal)
newVal - The new value to replace for the previously accessed element in the iteration.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||