示例#1
0
  public List<Ganga> getGangas() {
    List<Ganga> gangas = new ArrayList<>();
    GangaCursorWrapper cursor = queryGangas(null, null);

    try {
      cursor.moveToFirst();

      while (!cursor.isAfterLast()) {
        gangas.add(cursor.getGanga());
        cursor.moveToNext();
      }
    } finally {
      cursor.close();
    }

    return gangas;
  }