Package org.apache.commons.pool.impl
Class CursorableLinkedList.ListIter
- java.lang.Object
-
- org.apache.commons.pool.impl.CursorableLinkedList.ListIter
-
- All Implemented Interfaces:
java.util.Iterator<E>
,java.util.ListIterator<E>
- Direct Known Subclasses:
CursorableLinkedList.Cursor
- Enclosing class:
- CursorableLinkedList<E>
class CursorableLinkedList.ListIter extends java.lang.Object implements java.util.ListIterator<E>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) CursorableLinkedList.Listable<E>
_cur
(package private) int
_expectedModCount
(package private) CursorableLinkedList.Listable<E>
_lastReturned
(package private) int
_nextIndex
-
Constructor Summary
Constructors Constructor Description ListIter(int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(E o)
protected void
checkForComod()
boolean
hasNext()
boolean
hasPrevious()
E
next()
int
nextIndex()
E
previous()
int
previousIndex()
void
remove()
void
set(E o)
-
-
-
Field Detail
-
_cur
CursorableLinkedList.Listable<E> _cur
-
_lastReturned
CursorableLinkedList.Listable<E> _lastReturned
-
_expectedModCount
int _expectedModCount
-
_nextIndex
int _nextIndex
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
next
public E next()
-
previousIndex
public int previousIndex()
- Specified by:
previousIndex
in interfacejava.util.ListIterator<E>
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interfacejava.util.ListIterator<E>
-
nextIndex
public int nextIndex()
- Specified by:
nextIndex
in interfacejava.util.ListIterator<E>
-
remove
public void remove()
-
checkForComod
protected void checkForComod()
-
-