📄 doctorwebservice.java
字号:
package com.wlsunleashed.webservices.autotype;
import java.util.Hashtable;
/**
* Class DoctorWebService
* Description: A Java class used to be used as a backend
* component for a Web Service. Utilizes user-defined
* data typed called DoctorInfo
*
* Copyright: Copyright (c) 2002
* Company: Gamma Enterprise Technologies
* @author Jeff Marin <jeffm@getgamma.com>
* @version 1.0 10/1/2002
*/
public class DoctorWebService {
Hashtable doctorHash = null;
public DoctorWebService() {
doctorHash = new Hashtable();
DoctorInfo di = new DoctorInfo(1, "Troy", "Chin", 89.25f);
doctorHash.put(new Integer(1), di);
di = new DoctorInfo(2, "Rina", "Caprario", 95.72f);
doctorHash.put(new Integer(2), di);
}
public DoctorInfo getDoctorInfo(int doctorID) {
Object key = new Integer(doctorID);
DoctorInfo di = (DoctorInfo)doctorHash.get(key);
return di;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -