@Test public void testEquals() { GWTBounds b1 = new GWTBounds(1.0, 2.0, 3.0, 4.0); GWTBounds b2 = new GWTBounds(1.0, 2.0, 3.0, 4.0); GWTBounds b3 = new GWTBounds(1.0, 2.0, 3.0, 5.0); assertTrue(b1.equals(b1)); assertTrue(b1.equals(b2)); assertTrue(b2.equals(b1)); assertFalse(b1.equals(b3)); assertFalse(b3.equals(b1)); }
public boolean equals(Object o) { if (o instanceof GWTBounds) { GWTBounds b = (GWTBounds)o; return m_southWestCorner.equals(b.m_southWestCorner) && m_northEastCorner.equals(b.m_northEastCorner); } return false; }
GWTBounds { public boolean equals(Object o) { if (o instanceof GWTBounds) { GWTBounds b = (GWTBounds)o; return m_southWestCorner.equals(b.m_southWestCorner) && m_northEastCorner.equals(b.m_northEastCorner); } return false; } }
GWTBounds { public boolean equals(Object o) { if (o instanceof GWTBounds) { GWTBounds b = (GWTBounds)o; return m_southWestCorner.equals(b.m_southWestCorner) && m_northEastCorner.equals(b.m_northEastCorner); } return false; } GWTBounds(GWTLatLng southWestCorner, GWTLatLng northEastCorner);  GWTBounds(double swLat, double swLng, double neLat, double neLng); }
GWTBounds { public boolean equals(Object o) { if (o instanceof GWTBounds) { GWTBounds b = (GWTBounds)o; return m_southWestCorner.equals(b.m_southWestCorner) && m_northEastCorner.equals(b.m_northEastCorner); } return false; } GWTBounds(GWTLatLng southWestCorner, GWTLatLng northEastCorner);  GWTBounds(double swLat, double swLng, double neLat, double neLng); boolean contains(GWTLatLng coords); boolean contains(GWTBounds bounds); GWTLatLng getSouthWestCorner(); GWTLatLng getNorthEastCorner(); boolean equals(Object o); int hashCode(); String toString(); }
GWTBounds { public boolean equals(Object o) { if (o instanceof GWTBounds) { GWTBounds b = (GWTBounds)o; return m_southWestCorner.equals(b.m_southWestCorner) && m_northEastCorner.equals(b.m_northEastCorner); } return false; } GWTBounds(GWTLatLng southWestCorner, GWTLatLng northEastCorner);  GWTBounds(double swLat, double swLng, double neLat, double neLng); boolean contains(GWTLatLng coords); boolean contains(GWTBounds bounds); GWTLatLng getSouthWestCorner(); GWTLatLng getNorthEastCorner(); boolean equals(Object o); int hashCode(); String toString();  }