|
PCJ API Version 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents iterators over maps from long values to int values.
LongKeyIntMap
,
LongIterator
Method Summary | |
long |
getKey()
Returns the key of the current entry of this iterator. |
int |
getValue()
Returns the value of the current entry of this iterator. |
boolean |
hasNext()
Indicates whether more entries can be returned by this iterator. |
void |
next()
Advances to the next entry of this iterator. |
void |
remove()
Removes the last entry value returned from the underlying map. |
Method Detail |
public boolean hasNext()
next()
public void next()
NoSuchElementException
- if no more entries are available from this
iterator.hasNext()
public void remove()
UnsupportedOperationException
- if removal is not supported by this iterator.
IllegalStateException
- if no entry has been returned by this iterator
yet.public long getKey()
IllegalStateException
- if there is no current entry (i.e. if
next()
has not been called or
remove()
has just been called.getValue()
public int getValue()
IllegalStateException
- if there is no current entry (i.e. if
next()
has not been called or
remove()
has just been called.getKey()
|
PCJ API Version 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |