com.ef.cim.objectmodel.Location Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of objectmodel Show documentation
Show all versions of objectmodel Show documentation
This dependency contains object model classes for expert flow's CIM project
package com.ef.cim.objectmodel;
import javax.validation.constraints.NotNull;
public class Location {
@NotNull(message = "latitude is mandatory")
private double latitude;
@NotNull(message = "longitude is mandatory")
private double longitude;
public Location(double latitude, double longitude) {
this.latitude = latitude;
this.longitude = longitude;
}
public Location() {
}
public double getLatitude() {
return latitude;
}
public void setLatitude(double latitude) {
this.latitude = latitude;
}
public double getLongitude() {
return longitude;
}
public void setLongitude(double longitude) {
this.longitude = longitude;
}
@Override
public String toString() {
return "Location{" +
"latitude=" + latitude +
", longitude=" + longitude +
'}';
}
}