@Test public void testEquals() { ParseGeoPoint pointA = new ParseGeoPoint(30d, 50d); ParseGeoPoint pointB = new ParseGeoPoint(30d, 50d); ParseGeoPoint pointC = new ParseGeoPoint(45d, 45d); assertTrue(pointA.equals(pointB)); assertTrue(pointA.equals(pointA)); assertTrue(pointB.equals(pointA)); assertFalse(pointA.equals(null)); assertFalse(pointA.equals(true)); assertFalse(pointA.equals(pointC)); }
@Override public boolean equals(Object obj) { if (obj == null || !(obj instanceof ParseGeoPoint)) { return false; } if (obj == this) { return true; } return ((ParseGeoPoint) obj).getLatitude() == latitude && ((ParseGeoPoint) obj).getLongitude() == longitude; }
ParseGeoPoint implements Parcelable { @Override public boolean equals(Object obj) { if (obj == null || !(obj instanceof ParseGeoPoint)) { return false; } if (obj == this) { return true; } return ((ParseGeoPoint) obj).getLatitude() == latitude && ((ParseGeoPoint) obj).getLongitude() == longitude; } }
ParseGeoPoint implements Parcelable { @Override public boolean equals(Object obj) { if (obj == null || !(obj instanceof ParseGeoPoint)) { return false; } if (obj == this) { return true; } return ((ParseGeoPoint) obj).getLatitude() == latitude && ((ParseGeoPoint) obj).getLongitude() == longitude; } ParseGeoPoint();  ParseGeoPoint(double latitude, double longitude);  ParseGeoPoint(ParseGeoPoint point); protected  ParseGeoPoint(Parcel source);   ParseGeoPoint(Parcel source, ParseParcelDecoder decoder); }
ParseGeoPoint implements Parcelable { @Override public boolean equals(Object obj) { if (obj == null || !(obj instanceof ParseGeoPoint)) { return false; } if (obj == this) { return true; } return ((ParseGeoPoint) obj).getLatitude() == latitude && ((ParseGeoPoint) obj).getLongitude() == longitude; } ParseGeoPoint();  ParseGeoPoint(double latitude, double longitude);  ParseGeoPoint(ParseGeoPoint point); protected  ParseGeoPoint(Parcel source);   ParseGeoPoint(Parcel source, ParseParcelDecoder decoder); static Task<ParseGeoPoint> getCurrentLocationInBackground(long timeout); static void getCurrentLocationInBackground(long timeout, LocationCallback callback); static Task<ParseGeoPoint> getCurrentLocationInBackground(long timeout, Criteria criteria); static void getCurrentLocationInBackground(long timeout, Criteria criteria,
                                                      LocationCallback callback); double getLatitude(); void setLatitude(double latitude); double getLongitude(); void setLongitude(double longitude); double distanceInRadiansTo(ParseGeoPoint point); double distanceInKilometersTo(ParseGeoPoint point); double distanceInMilesTo(ParseGeoPoint point); @Override boolean equals(Object obj); @Override String toString(); @Override int describeContents(); @Override void writeToParcel(Parcel dest, int flags); }
ParseGeoPoint implements Parcelable { @Override public boolean equals(Object obj) { if (obj == null || !(obj instanceof ParseGeoPoint)) { return false; } if (obj == this) { return true; } return ((ParseGeoPoint) obj).getLatitude() == latitude && ((ParseGeoPoint) obj).getLongitude() == longitude; } ParseGeoPoint();  ParseGeoPoint(double latitude, double longitude);  ParseGeoPoint(ParseGeoPoint point); protected  ParseGeoPoint(Parcel source);   ParseGeoPoint(Parcel source, ParseParcelDecoder decoder); static Task<ParseGeoPoint> getCurrentLocationInBackground(long timeout); static void getCurrentLocationInBackground(long timeout, LocationCallback callback); static Task<ParseGeoPoint> getCurrentLocationInBackground(long timeout, Criteria criteria); static void getCurrentLocationInBackground(long timeout, Criteria criteria,
                                                      LocationCallback callback); double getLatitude(); void setLatitude(double latitude); double getLongitude(); void setLongitude(double longitude); double distanceInRadiansTo(ParseGeoPoint point); double distanceInKilometersTo(ParseGeoPoint point); double distanceInMilesTo(ParseGeoPoint point); @Override boolean equals(Object obj); @Override String toString(); @Override int describeContents(); @Override void writeToParcel(Parcel dest, int flags); final static Creator<ParseGeoPoint> CREATOR; }