zombie.util.map
Interface IntKeyMapIterator<V>


public interface IntKeyMapIterator<V>

This interface represents iterators over maps from int values to objects.

Since:
1.0
Version:
1.0 2003/6/1
Author:
Søren Bak
See Also:
IntKeyMap, IntIterator

Method Summary
 int getKey()
          Returns the key of the current entry of this iterator.
 V 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

hasNext

boolean hasNext()
Indicates whether more entries can be returned by this iterator.

Returns:
true if more int entries can be returned by this iterator; returns false otherwise.
See Also:
next()

next

void next()
Advances to the next entry of this iterator.

Throws:
java.util.NoSuchElementException - if no more entries are available from this iterator.
See Also:
hasNext()

remove

void remove()
Removes the last entry value returned from the underlying map.

Throws:
java.lang.UnsupportedOperationException - if removal is not supported by this iterator.
java.lang.IllegalStateException - if no entry has been returned by this iterator yet.

getKey

int getKey()
Returns the key of the current entry of this iterator.

Returns:
the key of the current entry of this iterator.
Throws:
java.lang.IllegalStateException - if there is no current entry (i.e. if next() has not been called or remove() has just been called.
See Also:
getValue()

getValue

V getValue()
Returns the value of the current entry of this iterator.

Returns:
the value of the current entry of this iterator (which may be null).
Throws:
java.lang.IllegalStateException - if there is no current entry (i.e. if next() has not been called or remove() has just been called.
See Also:
getKey()