use of m.co.rh.id.a_medic_log.base.entity.MedicineReminder in project a-medic-log by rh-id.
the class MedicineState method findMedicineReminderIndex.
private int findMedicineReminderIndex(MedicineReminder medicineReminder) {
ArrayList<MedicineReminder> medicineReminders = getMedicineReminderList();
int index = -1;
int size = medicineReminders.size();
for (int i = 0; i < size; i++) {
MedicineReminder fromList = medicineReminders.get(i);
if (fromList.id != null && fromList.id.equals(medicineReminder.id)) {
index = i;
break;
}
}
return index;
}
Aggregations