meeting.java

来自「ssd8 exercise4 答案 用rmi远程调用的方法来实现远程的serve」· Java 代码 · 共 72 行

JAVA
72
字号

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 + =
减小字号Ctrl + -
显示快捷键?