April 2019
Intermediate to advanced
360 pages
9h 17m
English
Our hospital information system implementation of the idempotency reactive design pattern will consist of the Patient class and the IdempotencyDriver class. The Patient class is provided in three sections, with the first section appearing next.
In this first section of the Patient class, we define the three class variables and create the constructor method. The constructor only has one argument and that is for the patientID number. When a Patient instance is created, the lengthOfStay variable is set to 0 and dayCounted is set to false:
package CH9IdempotencyExample;public class Patient { String patientID; int lengthOfStay; boolean dayCounted; // constructor public Patient (String patientID) { this.patientID ...
Read now
Unlock full access