urbanairship-core/src/main/java/com/urbanairship/automation/AutomationDataManager.java
@NonNull
    private List<ScheduleEntry> generateSchedules(@NonNull Cursor cursor) {
        cursor.moveToFirst();

        List<ScheduleEntry> entries = new ArrayList<>();
        while (!cursor.isAfterLast()) {
            ScheduleEntry entry = ScheduleEntry.fromCursor(cursor);
            if (entry != null) {
                entries.add(entry);
            }
            cursor.moveToNext();
        }

        return entries;
    }
/**
     * Helper method to generate schedule entries from a a cursor.
     *
     * @param cursor The cursor.
     * @return A list of schedule entries.
     */
Helper method to generate schedule entries from a a cursor.
@param cursor The cursor.
@return A list of schedule entries.
Helper method to generate schedule entries from a a cursor . @param cursor The cursor . @return A list of schedule entries .
@NonNull
    private List<ScheduleEntry> generateSchedules(@NonNull Cursor cursor) {
        cursor.moveToFirst();
        List<ScheduleEntry> entries = new ArrayList<>();
        while (!cursor.isAfterLast()) {
            ScheduleEntry entry = ScheduleEntry.fromCursor(cursor);
            if (entry != null) {
                entries.add(entry);
            }
            cursor.moveToNext();
        }
        return entries;
    }
@ NonNull private List < ScheduleEntry > generateSchedules ( @ NonNull Cursor cursor ) { cursor . moveToFirst ( ) ; List < ScheduleEntry > entries = new ArrayList < > ( ) ; while ( ! cursor . isAfterLast ( ) ) { ScheduleEntry entry = ScheduleEntry . fromCursor ( cursor ) ; if ( entry != null ) { entries . add ( entry ) ; } cursor . moveToNext ( ) ; } return entries ; }
Helper method to generate schedule entries from a a cursor.
Helper method to generate schedule entries from a a cursor .