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

org.epos.eposdatamodel.Location Maven / Gradle / Ivy

package org.epos.eposdatamodel;

import java.util.Objects;

/**
 * A spatial region specified by using geographic coordinates.
 */
public class Location extends EPOSDataModelEntity{

    /**
     * This property associates any resource with the corresponding geometry.
     **/
    private String location;


    public Location location(String location) {
        this.location = location;
        return this;
    }

    /**
     * Get location
     *
     * @return location
     **/

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }


    @Override
    public String toString() {
        return "Location{" +
                "location='" + location + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Location location1 = (Location) o;
        return Objects.equals(getLocation(), location1.getLocation());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getLocation());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy