storm-apt/api/src/main/java/com/turbomanage/storm/SQLiteDao.java
public List<T> asList(Cursor c) {
		// TODO consider returning Iterable<T> instead
		try {
			ArrayList<T> resultList = new ArrayList<T>();
			for (boolean hasItem = c.moveToFirst(); hasItem; hasItem = c.moveToNext()) {
				T obj = th.newInstance(c);
				resultList.add(obj);
			}
			return resultList;
		} finally {
			c.close();
		}
	}
public List<T> asList(Cursor c) {
		// TODO consider returning Iterable<T> instead
		try {
			ArrayList<T> resultList = new ArrayList<T>();
			for (boolean hasItem = c.moveToFirst(); hasItem; hasItem = c.moveToNext()) {
				T obj = th.newInstance(c);
				resultList.add(obj);
			}
			return resultList;
		} finally {
			c.close();
		}
	}
public List < T > asList ( Cursor c ) { // TODO consider returning Iterable<T> instead try { ArrayList < T > resultList = new ArrayList < T > ( ) ; for ( boolean hasItem = c . moveToFirst ( ) ; hasItem ; hasItem = c . moveToNext ( ) ) { T obj = th . newInstance ( c ) ; resultList . add ( obj ) ; } return resultList ; } finally { c . close ( ) ; } }
Converts all rows in a {@link Cursor} to a List of objects.

@param c Cursor
@return List<T>
Converts all rows in a { @link Cursor } to a List of objects .