PCJ API
Version 1.2

bak.pcj.map
Interface IntKeyFloatMapIterator


public interface IntKeyFloatMapIterator

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

Since:
1.0
See Also:
IntKeyFloatMap, IntIterator

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

public 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

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

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

remove

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

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

getKey

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

Returns:
the key of the current entry of this iterator.
Throws:
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

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

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

PCJ API
Version 1.2

Report a bug or request a feature.
Further information on the development and latest release of PCJ can be found at the project homepage.

Primitive Collections for Java is released under the GNU Lesser General Public License.
Copyright © 2002, 2003 Søren Bak. All Rights Reserved.

Hosted by SourceForge.net
SourceForge.net Logo