public class CursorIteratorImpl<T> extends java.lang.Object implements CloseableIterator<T>
Modifier and Type | Class and Description |
---|---|
static interface |
CursorIteratorImpl.OfCursor<T>
An encapsulation of a method to return an object from the current state of an android.database.Cursor.
|
Constructor and Description |
---|
CursorIteratorImpl(android.database.Cursor cursor,
CursorIteratorImpl.OfCursor<T> ofCursor)
Constructs a new CursorIterator from the given cursor and method for translating current cursor state into an object.
|
public CursorIteratorImpl(android.database.Cursor cursor, CursorIteratorImpl.OfCursor<T> ofCursor)
cursor
- a cursorofCursor
- an encapsulated method to return an object from the current state of the cursorpublic void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface CloseableIterator<T>
public boolean hasNext()
hasNext
in interface java.util.Iterator<T>
public void remove()
remove
in interface java.util.Iterator<T>