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

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

public class BooleanListIteratorListIterator
extends java.lang.Object
implements java.util.ListIterator

Adapts an BooleanListIterator to the ListIterator interface.

This implementation delegates most methods to the provided BooleanListIterator 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) $
Author:
Rodney Waldhoff

Constructor Summary
BooleanListIteratorListIterator(BooleanListIterator iterator)
          Creates an ListIterator wrapping the specified BooleanListIterator.
 
Method Summary
 void add(java.lang.Object obj)
           
 boolean hasNext()
           
 boolean hasPrevious()
           
 java.lang.Object next()
           
 int nextIndex()
           
 java.lang.Object previous()
           
 int previousIndex()
           
 void remove()
           
 void set(java.lang.Object obj)
           
static java.util.ListIterator wrap(BooleanListIterator iterator)
          Create a ListIterator wrapping the specified BooleanListIterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanListIteratorListIterator

public BooleanListIteratorListIterator(BooleanListIterator iterator)
Creates an ListIterator wrapping the specified BooleanListIterator.

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

wrap

public static java.util.ListIterator wrap(BooleanListIterator iterator)
Create a ListIterator wrapping the specified BooleanListIterator. When the given iterator is null, returns null.

Parameters:
iterator - the (possibly null) BooleanListIterator to wrap
Returns:
a ListIterator wrapping the given iterator, or null when iterator is null.

nextIndex

public int nextIndex()
Specified by:
nextIndex in interface java.util.ListIterator

previousIndex

public int previousIndex()
Specified by:
previousIndex in interface java.util.ListIterator

hasNext

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

hasPrevious

public boolean hasPrevious()
Specified by:
hasPrevious in interface java.util.ListIterator

next

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

previous

public java.lang.Object previous()
Specified by:
previous in interface java.util.ListIterator

add

public void add(java.lang.Object obj)
Specified by:
add in interface java.util.ListIterator

set

public void set(java.lang.Object obj)
Specified by:
set in interface java.util.ListIterator

remove

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


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