|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--lab2.HashSet.ProtectedItr
Field Summary | |
protected int |
expectedModCount
|
protected Iterator |
listCursor
|
protected int |
tableCursor
|
Constructor Summary | |
(package private) |
HashSet.ProtectedItr()
Costruttore |
Method Summary | |
boolean |
hasNext()
Indica se ci sono ulteriori oggetti da esaminare nell'iterazione corrente. |
java.lang.Object |
next()
Restituisce l'oggetto successivo da esaminare nell'iterazione. |
(package private) void |
nextList()
|
void |
remove()
Cancella l'oggetto restituito dall'ultima chiamata al metodo next . |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected int tableCursor
protected Iterator listCursor
protected int expectedModCount
Constructor Detail |
HashSet.ProtectedItr()
Method Detail |
void nextList()
public boolean hasNext()
hasNext
in interface Iterator
ConcurrentModificationException
- se avviene
una modifica concorrente degli stessi oggetti
mediante qualche altro metodo.public java.lang.Object next()
next
in interface Iterator
NoSuchElementException
- se non ci sono altri
oggetti da esaminare.ConcurrentModificationException
- se avviene
una modifica concorrente degli stessi oggetti
mediante qualche altro metodo.public void remove()
next
. Il metodo può essere
invocato solo una volta per ciascuna chiamata a
next
.remove
in interface Iterator
NoSuchElementException
- se non ci sono altri
oggetti da esaminare.ConcurrentModificationException
- se avviene
una modifica concorrente degli stessi oggetti
mediante qualche altro metodo.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |