CoordinateBounds implements Serializable { public boolean contains(double lat, double lon) { return _minLat <= lat && lat <= _maxLat && _minLon <= lon && lon <= _maxLon; } CoordinateBounds();  CoordinateBounds(double lat, double lon);  CoordinateBounds(CoordinateBounds bounds);  CoordinateBounds(double minLat, double minLon, double maxLat,
      double maxLon); boolean isEmpty(); void setEmpty(boolean empty); double getMinLat(); void setMinLat(double minLat); double getMinLon(); void setMinLon(double minLon); double getMaxLat(); void setMaxLat(double maxLat); double getMaxLon(); void setMaxLon(double maxLon); void addPoint(double lat, double lon); void addBounds(CoordinateBounds bounds); void clear(); boolean contains(double lat, double lon); boolean contains(CoordinatePoint point); boolean intersects(CoordinateBounds r); CoordinateBounds intersection(CoordinateBounds r); CoordinateBounds union(CoordinateBounds r); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testContains() { CoordinateBounds bounds = new CoordinateBounds(1,2,3,4); assertTrue(bounds.contains(1, 2)); assertTrue(bounds.contains(3, 4)); assertTrue(bounds.contains(2, 3)); assertFalse(bounds.contains(0, 3)); assertFalse(bounds.contains(2, 0)); }