|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.jomc.util.WeakIdentityHashMap.EntryIterator
private class WeakIdentityHashMap.EntryIterator
An iterator over the hash-table backing the implementation.
| Field Summary | |
|---|---|
private WeakIdentityHashMap.Entry |
current
The current element in the iteration. |
private int |
index
The current index into the hash-table. |
private int |
modifications
The number of modifications when this iterator got created. |
private WeakIdentityHashMap.Entry |
next
The next element in the iteration. |
| Constructor Summary | |
|---|---|
WeakIdentityHashMap.EntryIterator()
Creates a new EntryIterator instance. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Gets a flag indicating that the iteration has more elements. |
Object |
next()
Gets the next element in the iteration. |
void |
remove()
Removes from the underlying hash-table the last element returned by the iterator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private WeakIdentityHashMap.Entry next
private WeakIdentityHashMap.Entry current
private int index
private int modifications
| Constructor Detail |
|---|
WeakIdentityHashMap.EntryIterator()
EntryIterator instance.
| Method Detail |
|---|
public boolean hasNext()
hasNext in interface Iteratortrue if the iterator has more elements; false if the iterator does not have more
elements.public Object next()
next in interface IteratorNoSuchElementException - if the iterator does not have more elements.public void remove()
remove in interface IteratorIllegalStateException - if the next method has not yet been called, or the remove
method has already been called after the last call to the next method.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||