public class BooleanListIteratorListIterator extends Object implements ListIterator
BooleanListIterator
to the
ListIterator
interface.
This implementation delegates most methods
to the provided BooleanListIterator
implementation in the "obvious" way.Constructor and Description |
---|
BooleanListIteratorListIterator(BooleanListIterator iterator)
Creates an
ListIterator wrapping
the specified BooleanListIterator . |
Modifier and Type | Method and Description |
---|---|
void |
add(Object obj) |
boolean |
hasNext() |
boolean |
hasPrevious() |
Object |
next() |
int |
nextIndex() |
Object |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(Object obj) |
static ListIterator |
wrap(BooleanListIterator iterator)
Create a
ListIterator wrapping
the specified BooleanListIterator . |
public BooleanListIteratorListIterator(BooleanListIterator iterator)
ListIterator
wrapping
the specified BooleanListIterator
.public static ListIterator wrap(BooleanListIterator iterator)
ListIterator
wrapping
the specified BooleanListIterator
. When
the given iterator is null
,
returns null
.iterator
- the (possibly null
)
BooleanListIterator
to wrapListIterator
wrapping the given
iterator, or null
when iterator is
null
.public int nextIndex()
nextIndex
in interface ListIterator
public int previousIndex()
previousIndex
in interface ListIterator
public boolean hasNext()
hasNext
in interface Iterator
hasNext
in interface ListIterator
public boolean hasPrevious()
hasPrevious
in interface ListIterator
public Object next()
next
in interface Iterator
next
in interface ListIterator
public Object previous()
previous
in interface ListIterator
public void add(Object obj)
add
in interface ListIterator
public void set(Object obj)
set
in interface ListIterator
public void remove()
remove
in interface Iterator
remove
in interface ListIterator
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.