@Test(expected = IllegalStateException.class) public void close() { list.close(); list.get(0); }
@Override public void close() { if (cursor != null) { cursor.close(); } closed = true; }
CursorList implements Iterable<T>, Closeable { @Override public void close() { if (cursor != null) { cursor.close(); } closed = true; } }
CursorList implements Iterable<T>, Closeable { @Override public void close() { if (cursor != null) { cursor.close(); } closed = true; } CursorList(Cursor cursor, Class<T> type); }
CursorList implements Iterable<T>, Closeable { @Override public void close() { if (cursor != null) { cursor.close(); } closed = true; } CursorList(Cursor cursor, Class<T> type); int size(); T get(int pos); List<T> asList(); @Override Iterator<T> iterator(); Cursor getCursor(); @Override void close(); }
CursorList implements Iterable<T>, Closeable { @Override public void close() { if (cursor != null) { cursor.close(); } closed = true; } CursorList(Cursor cursor, Class<T> type); int size(); T get(int pos); List<T> asList(); @Override Iterator<T> iterator(); Cursor getCursor(); @Override void close();  }