@Test public void next() { iterator.next(); TestModel model = iterator.next(); assertEquals(model.title, "title2"); }
@Override public T next() { pos++; cursor.moveToPosition(pos); return Utils.getResultFromCursor(type, cursor); }
CursorIterator implements Iterator<T> { @Override public T next() { pos++; cursor.moveToPosition(pos); return Utils.getResultFromCursor(type, cursor); } }
CursorIterator implements Iterator<T> { @Override public T next() { pos++; cursor.moveToPosition(pos); return Utils.getResultFromCursor(type, cursor); } CursorIterator(Cursor cursor, Class<T> type); }
CursorIterator implements Iterator<T> { @Override public T next() { pos++; cursor.moveToPosition(pos); return Utils.getResultFromCursor(type, cursor); } CursorIterator(Cursor cursor, Class<T> type); @Override boolean hasNext(); @Override T next(); @Override void remove(); }
CursorIterator implements Iterator<T> { @Override public T next() { pos++; cursor.moveToPosition(pos); return Utils.getResultFromCursor(type, cursor); } CursorIterator(Cursor cursor, Class<T> type); @Override boolean hasNext(); @Override T next(); @Override void remove();  }