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

📄 location.java

📁 Hibernate Annotations Sample
💻 JAVA
字号:
//$Id: Location.java 14760 2008-06-11 07:33:15Z hardy.ferentschik $package org.hibernate.test.annotations.id.entities;import java.io.Serializable;/** * @author Emmanuel Bernard */@SuppressWarnings("serial")public class Location implements Serializable {	public double longitude;	public double latitude;	public boolean equals(Object o) {		if ( this == o ) return true;		if ( o == null || getClass() != o.getClass() ) return false;		final Location location = (Location) o;		if ( Double.compare( location.latitude, latitude ) != 0 ) return false;		if ( Double.compare( location.longitude, longitude ) != 0 ) return false;		return true;	}	public int hashCode() {		int result;		long temp;		temp = longitude != +0.0d ? Double.doubleToLongBits( longitude ) : 0L;		result = (int) ( temp ^ ( temp >>> 32 ) );		temp = latitude != +0.0d ? Double.doubleToLongBits( latitude ) : 0L;		result = 29 * result + (int) ( temp ^ ( temp >>> 32 ) );		return result;	}}

⌨️ 快捷键说明

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