request.java

来自「ServerGUI 读书管理 java」· Java 代码 · 共 42 行

JAVA
42
字号
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;
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?