PCJ API
Version 1.2

bak.pcj.map
Interface CharKeyByteMapIterator


public interface CharKeyByteMapIterator

This interface represents iterators over maps from char values to byte values.

Since:
1.0
See Also:
CharKeyByteMap, CharIterator

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