Package org.datanucleus.store.query
Class AbstractQueryResultIterator<E>
java.lang.Object
org.datanucleus.store.query.AbstractQueryResultIterator<E>
- Type Parameters:
E
- Type of element returned by this iterator
- All Implemented Interfaces:
Iterator<E>
,ListIterator<E>
- Direct Known Subclasses:
CandidateIdsQueryResult.ResultIterator
Abstract implementation of an iterator for query results.
Can be used as the base class for an iterator for the implementation of AbstractQueryResult.
-
Constructor Details
-
AbstractQueryResultIterator
public AbstractQueryResultIterator()
-
-
Method Details
-
add
- Specified by:
add
in interfaceListIterator<E>
-
hasNext
public abstract boolean hasNext() -
hasPrevious
public abstract boolean hasPrevious()- Specified by:
hasPrevious
in interfaceListIterator<E>
-
next
-
nextIndex
public abstract int nextIndex()- Specified by:
nextIndex
in interfaceListIterator<E>
-
previous
- Specified by:
previous
in interfaceListIterator<E>
-
previousIndex
public abstract int previousIndex()- Specified by:
previousIndex
in interfaceListIterator<E>
-
remove
public void remove() -
set
- Specified by:
set
in interfaceListIterator<E>
-