Newer
Older
CosmosClient / app / src / main / java / com / example / cosmosclient / entities / CosmosLocation.java
package com.example.cosmosclient.entities;

public class CosmosLocation {
    private double latitude;
    private double longitude;

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }
    public double getLatitude() {
        return latitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }
    public double getLongitude() {
        return longitude;
    }

    public int hashCode(){
        return (int)((latitude+90)/0.1)+(int)((longitude/0.1)*1800);
    }
}