org.apache.commons.collections.primitives
Interface BooleanIterator

All Known Subinterfaces:
BooleanListIterator
All Known Implementing Classes:
IteratorBooleanIterator, ListIteratorBooleanListIterator, RandomAccessBooleanList.RandomAccessBooleanListIterator

public interface BooleanIterator

An iterator over boolean values.

Since:
Commons Primitives 1.1
Version:
$Revision: 480460 $ $Date: 2006-11-29 09:14:21 +0100(mer, 29 nov 2006) $
See Also:
BooleanIteratorIterator, IteratorBooleanIterator

Method Summary
 boolean hasNext()
          Returns true iff I have more elements.
 boolean next()
          Returns the next element in me.
 void remove()
          Removes from my underlying collection the last element returned by me (optional operation).
 

Method Detail

hasNext

boolean hasNext()
Returns true iff I have more elements. (In other words, returns true iff a subsequent call to next will return an element rather than throwing an exception.)

Returns:
true iff I have more elements

next

boolean next()
Returns the next element in me.

Returns:
the next element in me
Throws:
NoSuchElementException - if there is no next element

remove

void remove()
Removes from my underlying collection the last element returned by me (optional operation).

Throws:
UnsupportedOperationException - if this operation is not supported
IllegalStateException - if next() has not yet been called, or remove() has already been called since the last call to next().


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.