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

📄 meeting.java

📁 ssd8 exercise4 答案 用rmi远程调用的方法来实现远程的server端 和 client端的消息通信
💻 JAVA
字号:

import java.util.Date;

/*
 * Created on 2008-5-17
 *
 * TODO The  clsaa reprent a meet
 * 
 */

/**
 * @author Yang Yang 
 * @version 1.0.0
 * 
 */
public class Meeting {

	//record the starting time
	private Date start;

	//record the ending time
	private Date end;

	//record the user meet with
	private String otherUserName;

	private String title;
	
	//to idicate is the client is a holder
	private boolean holder;

	//meeting id
	private int id;

	/*
	 * contruct a meeting
	 */
	public Meeting(Date s, Date e, String oun,String title,int id,boolean holder) {

		this.start = s;
		this.end = e;
		this.otherUserName = oun;
		this.title = title;
		this.id = id;
		this.holder = holder;
	}
	
	public Date getStart(){
		return start;
	}

	public Date getEnd(){
		return end;
	}
	
	public String getTitle(){
		return title;
	}
	
	public int getID(){	
		return id;
	}
	
	public String getOtherUserName(){
		return otherUserName;
	}
	
	public boolean getHolder(){
		return holder;
	}
}

⌨️ 快捷键说明

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