Back to project page iEtueri.
The source code is released under:
GNU General Public License
If you think the Android project iEtueri listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package exams; //from w w w . j a va 2 s . co m public class Exam { /** Id of the exam */ private int id; /** Name of the exam */ private String name; /** * Date of the end of the exam in hh:mm-hh:mm-yyyy/MM/dd format(inithour, * endhour, date) */ private String end; /** Date of the initHour; */ private String initHour; /** Date of the endHour; */ private String endHour; /** Note of the exam */ private float note; /** Subject of the exam */ private int subjectId; public Exam(int examId, int subjectId, String name, String end, float note) { this.setId(examId); this.subjectId = subjectId; String[] data = end.split("-"); this.setInitHour(data[0]); this.setEndHour(data[1]); this.end = data[2]; this.name = name; this.note = note; } public int getId() { return id; } public void setId(int id) { this.id = id; } /* Get and set the exam name */ public String getName() { return name; } public void setName(String name) { this.name = name; } /* Get the end date of the exam */ public String getEnd() { return end; } public void setEnd(String end) { this.end = end; } public String getInitHour() { return initHour; } public void setInitHour(String initHour) { this.initHour = initHour; } public String getEndHour() { return endHour; } public void setEndHour(String endHour) { this.endHour = endHour; } /* Get and set the note */ public float getNote() { return note; } public void setNote(float note) { this.note = note; } /* Get and set the subject Id */ public int getSubjectId() { return subjectId; } public void setSubjectId(int subjectId) { this.subjectId = subjectId; } }