Position extends Location { @Override public int hashCode() { int result = super.hashCode(); long temp; temp = Double.doubleToLongBits(altitude); result = 31 * result + (int) (temp ^ (temp >>> 32)); return result; } Position();  Position(double latitude, double longitude, double altitude);  Position(Position position); static Position fromDegrees(double latitudeDegrees, double longitudeDegrees, double altitude); static Position fromRadians(double latitudeRadians, double longitudeRadians, double altitude); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); Position set(double latitude, double longitude, double altitude); Position set(Position position); Position interpolateAlongPath(Position endPosition, @WorldWind.PathType int pathType, double amount,
                                         Position result); public double altitude; }
@Test public void testHashCode() throws Exception { Position oxr = Position.fromDegrees(34.2, -119.2, 13.7); Position lax = Position.fromDegrees(33.94, -118.4, 38.7); int oxrHash = oxr.hashCode(); int laxHash = lax.hashCode(); assertNotEquals("oxr hash vs lax hash", oxrHash, laxHash); }