Back to project page keepmoving.
The source code is released under:
GNU General Public License
If you think the Android project keepmoving listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package it.rainbowbreeze.keepmoving.domain; // w w w . j ava2s.c o m /** * This file is part of KeepMoving. KeepMoving is free software: you can * redistribute it and/or modify it under the terms of the GNU General Public * License as published by the Free Software Foundation, version 2. * <p/> * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * <p/> * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., 51 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * <p/> * Copyright Alfredo Morresi * <p/> * Created by Alfredo "Rainbowbreeze" Morresi on 14/06/14. */ public class Coord { /** * Latitude */ private final double mLat; public double getLat() { return mLat; } /** * Longitude */ private final double mLng; public double getLng() { return mLng; } public Coord(double lat, double lng) { this.mLat = lat; this.mLng = lng; } @Override public String toString() { return String.format("%f, %f", mLat, mLng) ; } @Override public boolean equals(Object o) { if (null == o) return false; if (!(o instanceof Coord)) return false; Coord other = (Coord) o; return mLat == other.mLat && mLng == other.mLng; } }