Package org.apache.felix.framework.util
Class ImmutableList.ListItr
- java.lang.Object
-
- org.apache.felix.framework.util.ImmutableList.ListItr
-
- All Implemented Interfaces:
java.util.Iterator<E>
,java.util.ListIterator<E>
- Enclosing class:
- ImmutableList<E>
private class ImmutableList.ListItr extends java.lang.Object implements java.util.ListIterator<E>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
cursor
-
Constructor Summary
Constructors Modifier Constructor Description private
ListItr(int cursor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(E e)
boolean
hasNext()
boolean
hasPrevious()
E
next()
int
nextIndex()
E
previous()
int
previousIndex()
void
remove()
void
set(E e)
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
next
public E next()
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interfacejava.util.ListIterator<E>
-
nextIndex
public int nextIndex()
- Specified by:
nextIndex
in interfacejava.util.ListIterator<E>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndex
in interfacejava.util.ListIterator<E>
-
remove
public void remove()
-
-