Skip to content

Instantly share code, notes, and snippets.

@bchetty
Created March 25, 2016 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bchetty/df005d55cd489e5923e9 to your computer and use it in GitHub Desktop.
Save bchetty/df005d55cd489e5923e9 to your computer and use it in GitHub Desktop.
Patient Model Class
/**
*
* @author Babji P, Chetty
*/
public class Patient {
private int id;
private String name;
private boolean emergencyCase;
public Patient(int id, String name, boolean emergencyCase) {
this.id = id;
this.name = name;
this.emergencyCase = emergencyCase;
}
/**
* @return the id
*/
public int getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(int id) {
this.id = id;
}
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* @return the emergencyCase
*/
public boolean isEmergencyCase() {
return emergencyCase;
}
/**
* @param emergencyCase the emergencyCase to set
*/
public void setEmergencyCase(boolean emergencyCase) {
this.emergencyCase = emergencyCase;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment