⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 request.java

📁 线程通信
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -