All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ef.cim.objectmodel.Location Maven / Gradle / Ivy

There is a newer version: 1.21.5
Show newest version
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 +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy