ServerGUI 读书管理 java

源代码在线查看: request.java

软件大小: 23 K
上传用户: ybsscauc
关键词: ServerGUI java
下载地址: 免注册下载 普通下载 VIP

相关代码

				import javax.swing.JProgressBar;
				import java.util.List;
				import java.io.*;
				public class Request implements Serializable{
					
					static final int AUTHEN=0;
					static final int BORROW=1;
					static final int RETUN=2;
					static final int SEARCH=3;
					static final int CHECKLOAN=4;
					
					private String borrowerId=null;
					private int type;
					private List req=null;
					//request encoded in String and stored in list
					//for this.AUTHEN req(0)=borrowerId
					//for this.BORROW||RETUN||SEARCH req(n)=title of books
					
					public Request(String borrowerId,int type,List req){
						this.borrowerId=borrowerId;
						this.type=type;
						this.req=req;
					}
					
					public Request(String borrowerId,int type){
						this.borrowerId=borrowerId;
						this.type=type;
					}
						
					
					public String getBorrowerId(){
						return borrowerId;
					}
					
					public int getType(){
						return type;
					}
					
					public List getReq(){
						return req;
					}
				}			

相关资源