PCJ API
Version 1.2

bak.pcj
Interface ByteIterator

All Known Subinterfaces:
ByteListIterator
All Known Implementing Classes:
IteratorToByteIteratorAdapter, ListIteratorToByteListIteratorAdapter

public interface ByteIterator

This class represents iterators over collections of byte values.

Since:
1.0
See Also:
Iterator

Method Summary
 boolean hasNext()
          Indicates whether more byte values can be returned by this iterator.
 byte next()
          Returns the next byte value of this iterator.
 void remove()
          Removes the last byte value returned from the underlying collection.
 

Method Detail

hasNext

public boolean hasNext()
Indicates whether more byte values can be returned by this iterator.

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

next

public byte next()
Returns the next byte value of this iterator.

Returns:
the next byte value of this iterator.
Throws:
NoSuchElementException - if no more elements are available from this iterator.
See Also:
hasNext()

remove

public void remove()
Removes the last byte value returned from the underlying collection.

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

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