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

📄 message.java

📁 Chat application to communicate between systems. This web based app can be run using Tomcat.
💻 JAVA
字号:
package chainsys.chat.business;/**Represents a Message sent by a user.*/public class Message{	/**	* String used to store the name of a chatter	*@author chainsys   	*/	private String chatterName = null;	/**	* String containing message	*/	private String message = null;	/**	* long containing the time when message was delivered	*/	private long timeStamp;	/**	* This constructor accepts a name of the chatterand the message.	* @param name Name of the chatter	* @param message message of the chatter	* @param timeStamp time of the message	*/	public Message(String name, String message, long timeStamp)	{		this.chatterName = name;		this.message= message;		this.timeStamp = timeStamp;	}		/**	* Returns name of the Chatter	* @return String	*/	public String getChatterName()	{		return chatterName;	}		/**	* Returns message of the chatter	* @return String	*/	public String getMessage()	{		return message;	}	/**	* Returns time of the message	* @return long	*/	public long getTimeStamp()	{		return timeStamp;	}}

⌨️ 快捷键说明

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