@Test public void testEqualsObject() { assertEquals(a, b); assertEquals(b, a); assertFalse(a.equals(c)); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof BoundingBox) { BoundingBox that = (BoundingBox) obj; return minLat == that.minLat && minLon == that.minLon && maxLat == that.maxLat && maxLon == that.maxLon; } else { return false; } }
BoundingBox implements Serializable { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof BoundingBox) { BoundingBox that = (BoundingBox) obj; return minLat == that.minLat && minLon == that.minLon && maxLat == that.maxLat && maxLon == that.maxLon; } else { return false; } } }
BoundingBox implements Serializable { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof BoundingBox) { BoundingBox that = (BoundingBox) obj; return minLat == that.minLat && minLon == that.minLon && maxLat == that.maxLat && maxLon == that.maxLon; } else { return false; } } BoundingBox(WGS84Point p1, WGS84Point p2);  BoundingBox(double y1, double y2, double x1, double x2);  BoundingBox(BoundingBox that); }
BoundingBox implements Serializable { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof BoundingBox) { BoundingBox that = (BoundingBox) obj; return minLat == that.minLat && minLon == that.minLon && maxLat == that.maxLat && maxLon == that.maxLon; } else { return false; } } 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 boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof BoundingBox) { BoundingBox that = (BoundingBox) obj; return minLat == that.minLat && minLon == that.minLon && maxLat == that.maxLat && maxLon == that.maxLon; } else { return false; } } 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();  }