Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.dtr;import java.time.LocalDateTime;public class GpsLocationModel {private int userId;private int locationId;private LocalDateTime createTime;private boolean gps;private double lat;private double lng;public int getUserId() {return userId;}public void setUserId(int userId) {this.userId = userId;}public int getLocationId() {return locationId;}public void setLocationId(int locationId) {this.locationId = locationId;}public LocalDateTime getCreateTime() {return createTime;}public void setCreateTime(LocalDateTime createTime) {this.createTime = createTime;}public double getLat() {return lat;}public void setLat(double lat) {this.lat = lat;}public double getLng() {return lng;}public void setLng(double lng) {this.lng = lng;}@Overridepublic String toString() {return "LocationModel [userId=" + userId + ", locationId=" + locationId + ", createTime=" + createTime+ ", gps=" + gps + ", lat=" + lat + ", lng=" + lng + "]";}public boolean isGps() {return gps;}public void setGps(boolean gps) {this.gps = gps;}@Overridepublic int hashCode() {final int prime = 31;int result = 1;result = prime * result + ((createTime == null) ? 0 : createTime.hashCode());result = prime * result + (gps ? 1231 : 1237);long temp;temp = Double.doubleToLongBits(lat);result = prime * result + (int) (temp ^ (temp >>> 32));temp = Double.doubleToLongBits(lng);result = prime * result + (int) (temp ^ (temp >>> 32));result = prime * result + locationId;result = prime * result + userId;return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;GpsLocationModel other = (GpsLocationModel) obj;if (createTime == null) {if (other.createTime != null)return false;} else if (!createTime.equals(other.createTime))return false;if (gps != other.gps)return false;if (Double.doubleToLongBits(lat) != Double.doubleToLongBits(other.lat))return false;if (Double.doubleToLongBits(lng) != Double.doubleToLongBits(other.lng))return false;if (locationId != other.locationId)return false;if (userId != other.userId)return false;return true;}}