You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So far, MapPoint is immutable (though it has an update method), but it is a quite convenient object to deal with a pair of (latitude, longitude) coordinates.
This means that it can't be easily serialized/deserialized through JSON.
Also it doesn't print nicely or can't be compared.
Adding an empty constructor, setters, toString and hash/equals could solve this.
The text was updated successfully, but these errors were encountered:
So far,
MapPoint
is immutable (though it has anupdate
method), but it is a quite convenient object to deal with a pair of (latitude, longitude) coordinates.This means that it can't be easily serialized/deserialized through JSON.
Also it doesn't print nicely or can't be compared.
Adding an empty constructor, setters,
toString
andhash
/equals
could solve this.The text was updated successfully, but these errors were encountered: