@Test public void testEquals() { Coordinate other = new Coordinate(49.592410, 11.004174); Assert.assertEquals(erlangen, other); }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Coordinate that = (Coordinate) o; return Double.compare(that.latitude, latitude) == 0 && Double.compare(that.longitude, longitude) == 0; }
Coordinate { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Coordinate that = (Coordinate) o; return Double.compare(that.latitude, latitude) == 0 && Double.compare(that.longitude, longitude) == 0; } }
Coordinate { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Coordinate that = (Coordinate) o; return Double.compare(that.latitude, latitude) == 0 && Double.compare(that.longitude, longitude) == 0; } Coordinate(
		@JsonProperty("lat") double latitude,
		@JsonProperty("lng") double longitude
		); }
Coordinate { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Coordinate that = (Coordinate) o; return Double.compare(that.latitude, latitude) == 0 && Double.compare(that.longitude, longitude) == 0; } Coordinate(
		@JsonProperty("lat") double latitude,
		@JsonProperty("lng") double longitude
		); double getLatitude(); double getLongitude(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
Coordinate { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Coordinate that = (Coordinate) o; return Double.compare(that.latitude, latitude) == 0 && Double.compare(that.longitude, longitude) == 0; } Coordinate(
		@JsonProperty("lat") double latitude,
		@JsonProperty("lng") double longitude
		); double getLatitude(); double getLongitude(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }