org.apache.commons.collections.primitives.adapters
Class BooleanIteratorIterator

java.lang.Object
  extended by org.apache.commons.collections.primitives.adapters.BooleanIteratorIterator
All Implemented Interfaces:
java.util.Iterator

public class BooleanIteratorIterator
extends java.lang.Object
implements java.util.Iterator

Adapts an BooleanIterator to the Iterator interface.

This implementation delegates most methods to the provided BooleanIterator implementation in the "obvious" way.

Since:
Commons Primitives 1.1
Version:
$Revision: 480462 $ $Date: 2006-11-29 09:15:00 +0100 (Wed, 29 Nov 2006) $

Constructor Summary
BooleanIteratorIterator(BooleanIterator iterator)
          Creates an Iterator wrapping the specified BooleanIterator.
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
static java.util.Iterator wrap(BooleanIterator iterator)
          Create an Iterator wrapping the specified BooleanIterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanIteratorIterator

public BooleanIteratorIterator(BooleanIterator iterator)
Creates an Iterator wrapping the specified BooleanIterator.

See Also:
wrap(org.apache.commons.collections.primitives.BooleanIterator)
Method Detail

wrap

public static java.util.Iterator wrap(BooleanIterator iterator)
Create an Iterator wrapping the specified BooleanIterator. When the given iterator is null, returns null.

Parameters:
iterator - the (possibly null) BooleanIterator to wrap
Returns:
an Iterator wrapping the given iterator, or null when iterator is null.

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator


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