PCJ API
Version 1.2

bak.pcj.map
Interface BooleanKeyCharMapIterator


public interface BooleanKeyCharMapIterator

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

Since:
1.0
See Also:
BooleanKeyCharMap, BooleanIterator

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