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

📄 .#merg58690cvs

📁 Athena酒店小组_Athena酒店管理系统
💻 #MERG58690CVS
字号:
/*
 * Room.java
 *
 * Created on 2007年6月4日, 下午10:07
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package lambert;

import java.io.Serializable;

/**
 * 实体类 Room
 * 
 * @author Virlene Cheng
 */

public class Room implements Serializable
{

	
	private String roomNum;

	
	private String roomType;

	
	private String engrossDetail;

	
	
	private String remark;
    
    /** Creates a new instance of Room */
    public Room()
    {
    }

	/**
	 * 使用指定的值创建 Room 的新实例。
	 * @param roomNum,Room 的 roomNum
	 */
	public Room(String roomNum)
	{
		this.roomNum = roomNum;
	}

	/**
	 * 使用指定的值创建 Room 的新实例。
	 * @param roomNum,Room 的 roomNum
	 * @param roomType,Room 的 roomType
	 * @param engrossDetail,Room 的 engrossDetail
	 */
	public Room(String roomNum, String roomType, String engrossDetail)
	{
		this.roomNum = roomNum;
		this.roomType = roomType;
		this.engrossDetail = engrossDetail;
	}

	/**
	 * 获取此 Room 的 roomNum。
	 * @return roomNum
	 */
	public String getRoomNum()
	{
		return this.roomNum;
	}

	/**
	 * 将此 Room 的 roomNum 设置为指定的值。
	 * @param roomNum,新建 roomNum
	 */
	public void setRoomNum(String roomNum)
	{
		this.roomNum = roomNum;
	}

	/**
	 * 获取此 Room 的 roomType。
	 * @return roomType
	 */
	public String getRoomType()
	{
		return this.roomType;
	}

	/**
	 * 将此 Room 的 roomType 设置为指定的值。
	 * @param roomType,新建 roomType
	 */
	public void setRoomType(String roomType)
	{
		this.roomType = roomType;
	}

	/**
	 * 获取此 Room 的 engrossDetail。
	 * @return engrossDetail
	 */
	public String getEngrossDetail()
	{
		return this.engrossDetail;
	}

	/**
	 * 将此 Room 的 engrossDetail 设置为指定的值。
	 * @param engrossDetail,新建 engrossDetail
	 */
	public void setEngrossDetail(String engrossDetail)
	{
		this.engrossDetail = engrossDetail;
	}

	/**
	 * 获取此 Room 的 remark。
	 * @return remark
	 */
	public String getRemark()
	{
		return this.remark;
	}

	/**
	 * 将此 Room 的 remark 设置为指定的值。
	 * @param remark,新建 remark
	 */
	public void setRemark(String remark)
	{
		this.remark = remark;
	}

	/**
	 * 返回对象的散列代码值。该实现根据此对象
	 * 中 id 字段计算散列代码值。
	 * @return 此对象的散列代码值。
	 */
	@Override
	public int hashCode()
	{
		int hash = 0;
		hash += (this.roomNum != null ? this.roomNum.hashCode() : 0);
		return hash;
	}

	/**
	 * 确定其他对象是否等于此 Room。当且仅当
	 * 参数不为 null 且该参数是具有与此对象相同 id 字段值的 Room 对象时,
	 * 结果才为 <code>true</code>。
	 * @param 对象,要比较的引用对象
	 * 如果此对象与参数相同,则 @return <code>true</code>;
	 * 否则为 <code>false</code>。
	 */
	@Override
	public boolean equals(Object object)
	{
		// TODO: Warning - this method won't work in the case the id fields are not set
		if (!(object instanceof Room)) {
			return false;
		}
		Room other = (Room)object;
		if (this.roomNum != other.roomNum && (this.roomNum == null || !this.roomNum.equals(other.roomNum))) return false;
		return true;
	}

	/**
	 * 返回对象的字符串表示法。该实现根据 id 字段
	 * 构造此表示法。
	 * @return 对象的字符串表示法。
	 */
	@Override
	public String toString()
	{
		return getRoomNum();
	}
    
}

⌨️ 快捷键说明

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