日期:2014-05-20 浏览次数:20602 次
package StartDiaguo; import java.io.Serializable; //import java.util.*; public class Appointment implements Serializable { private String clientName; private String startTime; private String endTime; private String date; private Appointment next; public Appointment(){ clientName = null; date = null; startTime = null; endTime = null; next = null; } public Appointment(String name,String d, String s, String e){ clientName = name; date = d; startTime = s; endTime = e; next = null; } public Appointment getNext(){ return next; } public void setNext(Appointment ap){ next = ap; } public String getName(){ return clientName; } public void setName(String name){ clientName = name; } public String getTime(){ return startTime +"-"+ endTime; } public void setTime(String s, String e){ startTime = s; endTime = e; } public String getStartTime(){ return startTime; } public void setStartTime(String s){ startTime = s; } public void setEndTime(String e){ endTime = e; } public String getEndTime(){ return endTime; } public String getDate(){ return date; } public void setDate(String d){ date = d; } public void setAppointment(String n, String d, String s, String e) { clientName = n; startTime = s; endTime = e; date = d; } }
import java.io.Serializable; //import java.util.*; public class Appointment implements Serializable { private String clientName; private String startTime; private String endTime; private String date; // private Appointment next; @Override public String toString() { return "Appointment{" + "clientName='" + clientName + '\'' + ", startTime='" + startTime + '\'' + ", endTime='" + endTime + '\'' + ", date='" + date + '\'' + '}'; } public Appointment(){ clientName = null; date = null; startTime = null; endTime = null; // next = null; } public Appointment(String name,String d, String s, String e){ clientName = name; date = d; startTime = s; endTime = e; // next = null; } public String getName(){ return clientName; } public void setName(String name){ clientName = name; } public String getTime(){ return startTime +"-"+ endTime; } public void setTime(String s, String e){ startTime = s; endTime = e; } public String getStartTime(){ return startTime; } public void setStartTime(String s){ startTime = s; } public void setEndTime(String e){ endTime = e; } public String getEndTime(){ return endTime; } public String getDate(){ return date; } public void setDate(String d){ date = d; } public void setAppointment(String n, String d, String s, String e) { clientName = n; startTime = s; endTime = e; date = d; } }