Package net.sf.basedb.core
Class ItemResultList.ResultListListIterator<T extends BasicItem>
- java.lang.Object
-
- net.sf.basedb.core.ItemResultList.ResultListListIterator<T>
-
- All Implemented Interfaces:
Iterator<T>
,ListIterator<T>
- Enclosing class:
- ItemResultList<I extends BasicItem>
private class ItemResultList.ResultListListIterator<T extends BasicItem> extends Object implements ListIterator<T>
Inner class to implement the iterator returned by theItemResultList.listIterator()
method.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ResultListListIterator(ListIterator<? extends BasicData> iterator, Class<T> itemClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(T o)
This operation is not supported.boolean
hasNext()
boolean
hasPrevious()
T
next()
int
nextIndex()
T
previous()
int
previousIndex()
void
remove()
This operation is not supported.void
set(T o)
This operation is not supported.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Field Detail
-
iterator
private final ListIterator<? extends BasicData> iterator
-
-
Constructor Detail
-
ResultListListIterator
private ResultListListIterator(ListIterator<? extends BasicData> iterator, Class<T> itemClass)
-
-
Method Detail
-
add
public void add(T o)
This operation is not supported.- Specified by:
add
in interfaceListIterator<T extends BasicItem>
- Throws:
UnsupportedOperationException
- Always
-
hasNext
public boolean hasNext()
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interfaceListIterator<T extends BasicItem>
-
next
public T next()
-
nextIndex
public int nextIndex()
- Specified by:
nextIndex
in interfaceListIterator<T extends BasicItem>
-
previous
public T previous()
- Specified by:
previous
in interfaceListIterator<T extends BasicItem>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndex
in interfaceListIterator<T extends BasicItem>
-
remove
public void remove()
This operation is not supported.- Specified by:
remove
in interfaceIterator<T extends BasicItem>
- Specified by:
remove
in interfaceListIterator<T extends BasicItem>
- Throws:
UnsupportedOperationException
- Always
-
set
public void set(T o)
This operation is not supported.- Specified by:
set
in interfaceListIterator<T extends BasicItem>
- Throws:
UnsupportedOperationException
- Always
-
-