public static ArrayList<ReminderEntry> reminderItemsToReminders(ArrayList<LinearLayout> reminderItems,ArrayList<Integer> reminderMinuteValues,ArrayList<Integer> reminderMethodValues){
  int len=reminderItems.size();
  ArrayList<ReminderEntry> reminders=new ArrayList<ReminderEntry>(len);
  for (int index=0; index < len; index++) {
    LinearLayout layout=reminderItems.get(index);
    Spinner minuteSpinner=(Spinner)layout.findViewById(R.id.reminder_minutes_value);
    Spinner methodSpinner=(Spinner)layout.findViewById(R.id.reminder_method_value);
    int minutes=reminderMinuteValues.get(minuteSpinner.getSelectedItemPosition());
    int method=reminderMethodValues.get(methodSpinner.getSelectedItemPosition());
    reminders.add(ReminderEntry.valueOf(minutes,method));
  }
  return reminders;
}

public static ArrayList < ReminderEntry > reminderItemsToReminders ( ArrayList < LinearLayout > reminderItems , ArrayList < Integer > reminderMinuteValues , ArrayList < Integer > reminderMethodValues ) { int len = reminderItems . size ( ) ; ArrayList < ReminderEntry > reminders = new ArrayList < ReminderEntry > ( len ) ; for ( int index = 0 ; index < len ; index ++ ) { LinearLayout layout = reminderItems . get ( index ) ; Spinner minuteSpinner = ( Spinner ) layout . findViewById ( R . id . reminder_minutes_value ) ; Spinner methodSpinner = ( Spinner ) layout . findViewById ( R . id . reminder_method_value ) ; int minutes = reminderMinuteValues . get ( minuteSpinner . getSelectedItemPosition ( ) ) ; int method = reminderMethodValues . get ( methodSpinner . getSelectedItemPosition ( ) ) ; reminders . add ( ReminderEntry . valueOf ( minutes , method ) ) ; } return reminders ; }
extracts reminder minutes info from ui elements .
