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.
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.