List<InactiveDevice> inactiveDeviceList = new ArrayList<InactiveDevice>();
for (Entry<String, Date> inactiveDeviceEntry : inactiveDeviceMap.entrySet()) {
String deviceToken = inactiveDeviceEntry.getKey();
Date date = inactiveDeviceEntry.getValue();
InactiveDevice inactiveDevice = new InactiveDevice(deviceToken, date);
inactiveDeviceList.add(inactiveDevice);
}
return inactiveDeviceList;
}