![JAR search and dependency download from the Maven repository](/logo.png)
com.atlis.location.model.impl.MapPoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of atlis-location-base Show documentation
Show all versions of atlis-location-base Show documentation
Base library for location stuff.
The newest version!
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.atlis.location.model.impl;
import com.atlis.location.model.LocationModelAbs;
/**
*
* @author nf
*/
public class MapPoint extends LocationModelAbs {
protected Double latitude;
protected Double longitude;
public MapPoint() {
}
public MapPoint buildMapPoint(Double latitude, Double longitude) {
this.latitude = latitude;
this.longitude = longitude;
return this;
}
public Double getLongitude() {
return longitude;
}
public void setLongitude(Double longitude) {
this.longitude = longitude;
}
public Double getLatitude() {
return latitude;
}
public void setLatitude(Double latitude) {
this.latitude = latitude;
}
public Boolean hasLocation() {
return longitude != null && !longitude.equals(0.0) && latitude != null && !latitude.equals(0.0);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy