PCJ API
Version 1.2

bak.pcj.map
Interface FloatKeyMapIterator


public interface FloatKeyMapIterator

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

Since:
1.0
See Also:
FloatKeyMap, FloatIterator

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