### Question:
LatLng implements Parcelable { @Override public int hashCode() { int result; long temp; temp = Double.doubleToLongBits(latitude); result = (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(longitude); result = 31 * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(altitude); result = 31 * result + (int) (temp ^ (temp >>> 32)); return result; } LatLng(); @Keep  LatLng(double latitude, double longitude);  LatLng(double latitude, double longitude, double altitude);  LatLng(Location location);  LatLng(LatLng latLng); protected  LatLng(Parcel in); void setLatitude(
    @FloatRange(from = GeometryConstants.MIN_LATITUDE, to = GeometryConstants.MAX_LATITUDE) double latitude); double getLatitude(); void setLongitude(@FloatRange(from = GeometryConstants.MIN_LONGITUDE, to = GeometryConstants.MAX_LONGITUDE)
                             double longitude); double getLongitude(); void setAltitude(double altitude); double getAltitude(); @NonNull LatLng wrap(); @Override boolean equals(@Nullable Object object); @Override int hashCode(); @NonNull @Override String toString(); @Override int describeContents(); @Override void writeToParcel(@NonNull Parcel out, int flags); double distanceTo(@NonNull LatLng other); static final Parcelable.Creator<LatLng> CREATOR; }### Answer:
@Test public void testHashCode() { double latitude = 1.2; double longitude = 3.4; double altitude = 5.6; LatLng latLng = new LatLng(latitude, longitude, altitude); assertEquals("hash code should match", latLng.hashCode(), -151519232); }