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

📄 location.java

📁 JSP+SQL编写的人力资源管理系统
💻 JAVA
字号:
//$Id: Location.java,v 1.1.2.1 2003/11/08 02:25:29 oneovthafew Exp $package org.hibernate.test;import java.io.Serializable;import java.util.Locale;public class Location implements Serializable {	private int streetNumber;	private String city;	private String streetName;	private String countryCode;	private Locale locale;	private String description;		/**	 * Returns the countryCode.	 * @return String	 */	public String getCountryCode() {		return countryCode;	}		/**	 * Returns the description.	 * @return String	 */	public String getDescription() {		return description;	}		/**	 * Returns the locale.	 * @return Locale	 */	public Locale getLocale() {		return locale;	}		/**	 * Returns the streetName.	 * @return String	 */	public String getStreetName() {		return streetName;	}		/**	 * Returns the streetNumber.	 * @return int	 */	public int getStreetNumber() {		return streetNumber;	}		/**	 * Sets the countryCode.	 * @param countryCode The countryCode to set	 */	public void setCountryCode(String countryCode) {		this.countryCode = countryCode;	}		/**	 * Sets the description.	 * @param description The description to set	 */	public void setDescription(String description) {		this.description = description;	}		/**	 * Sets the locale.	 * @param locale The locale to set	 */	public void setLocale(Locale locale) {		this.locale = locale;	}		/**	 * Sets the streetName.	 * @param streetName The streetName to set	 */	public void setStreetName(String streetName) {		this.streetName = streetName;	}		/**	 * Sets the streetNumber.	 * @param streetNumber The streetNumber to set	 */	public void setStreetNumber(int streetNumber) {		this.streetNumber = streetNumber;	}		/**	 * Returns the city.	 * @return String	 */	public String getCity() {		return city;	}		/**	 * Sets the city.	 * @param city The city to set	 */	public void setCity(String city) {		this.city = city;	}		public boolean equals(Object other) {		Location l = (Location) other;		return l.getCity().equals(city) && l.getStreetName().equals(streetName) && l.getCountryCode().equals(countryCode) && l.getStreetNumber()==streetNumber;	}	public int hashCode() {		return streetName.hashCode();	}	}

⌨️ 快捷键说明

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