Skip to content

Commit 638b7d4

Browse files
committed
Add new ParseGeoPoint(point) for copying
1 parent c2023c9 commit 638b7d4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Parse/src/main/java/com/parse/ParseGeoPoint.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ public ParseGeoPoint(double latitude, double longitude) {
5858
setLongitude(longitude);
5959
}
6060

61+
/**
62+
* Creates a copy of {@code point};
63+
*
64+
* @param point
65+
* The point to copy.
66+
*/
67+
public ParseGeoPoint(ParseGeoPoint point) {
68+
this(point.getLatitude(), point.getLongitude());
69+
}
70+
6171
/**
6272
* Set latitude. Valid range is (-90.0, 90.0). Extremes should not be used.
6373
*

0 commit comments

Comments
 (0)