@Test public void testHashCode() { assertEquals(a.hashCode(), b.hashCode()); assertFalse(a.hashCode() == c.hashCode()); }
@Override public int hashCode() { int result = 17; result = 37 * result + hashCode(minLat); result = 37 * result + hashCode(maxLat); result = 37 * result + hashCode(minLon); result = 37 * result + hashCode(maxLon); return result; }
BoundingBox implements Serializable { @Override public int hashCode() { int result = 17; result = 37 * result + hashCode(minLat); result = 37 * result + hashCode(maxLat); result = 37 * result + hashCode(minLon); result = 37 * result + hashCode(maxLon); return result; } }
BoundingBox implements Serializable { @Override public int hashCode() { int result = 17; result = 37 * result + hashCode(minLat); result = 37 * result + hashCode(maxLat); result = 37 * result + hashCode(minLon); result = 37 * result + hashCode(maxLon); return result; } BoundingBox(WGS84Point p1, WGS84Point p2);  BoundingBox(double y1, double y2, double x1, double x2);  BoundingBox(BoundingBox that); }
BoundingBox implements Serializable { @Override public int hashCode() { int result = 17; result = 37 * result + hashCode(minLat); result = 37 * result + hashCode(maxLat); result = 37 * result + hashCode(minLon); result = 37 * result + hashCode(maxLon); return result; } BoundingBox(WGS84Point p1, WGS84Point p2);  BoundingBox(double y1, double y2, double x1, double x2);  BoundingBox(BoundingBox that); WGS84Point getUpperLeft(); WGS84Point getLowerRight(); double getLatitudeSize(); double getLongitudeSize(); @Override boolean equals(Object obj); @Override int hashCode(); boolean contains(WGS84Point point); boolean intersects(BoundingBox other); @Override String toString(); WGS84Point getCenterPoint(); void expandToInclude(BoundingBox other); double getMinLon(); double getMinLat(); double getMaxLat(); double getMaxLon(); }
BoundingBox implements Serializable { @Override public int hashCode() { int result = 17; result = 37 * result + hashCode(minLat); result = 37 * result + hashCode(maxLat); result = 37 * result + hashCode(minLon); result = 37 * result + hashCode(maxLon); return result; } BoundingBox(WGS84Point p1, WGS84Point p2);  BoundingBox(double y1, double y2, double x1, double x2);  BoundingBox(BoundingBox that); WGS84Point getUpperLeft(); WGS84Point getLowerRight(); double getLatitudeSize(); double getLongitudeSize(); @Override boolean equals(Object obj); @Override int hashCode(); boolean contains(WGS84Point point); boolean intersects(BoundingBox other); @Override String toString(); WGS84Point getCenterPoint(); void expandToInclude(BoundingBox other); double getMinLon(); double getMinLat(); double getMaxLat(); double getMaxLon();  }