GeoRectangle extends Primitive { @Nonnull public GeoRectangle withNorthEast(@Nonnull final GeoPoint northEast) { return new GeoRectangle(southWest, northEast); } GeoRectangle(
            @Nonnull final GeoPoint southWest,
            @Nonnull final GeoPoint northEast); @SuppressWarnings({"ConstantConditions", "UnusedDeclaration"}) @Deprecated private  GeoRectangle(); @Deprecated() @Nonnull static GeoRectangle getWorld(); @Nonnull @Override GeoRectangle boundingBox(); @Nonnull GeoPoint getSouthWest(); @Nonnull GeoPoint getNorthEast(); @Nonnull GeoRectangle withSouthWest(@Nonnull final GeoPoint southWest); @Nonnull GeoRectangle withNorthEast(@Nonnull final GeoPoint northEast); double getNorthing(); double getEasting(); @Override boolean overlaps(@Nonnull final GeoArea area); @Nonnull GeoRectangle expand(final double meters); @Override boolean contains(@Nonnull final GeoArea area); @Override boolean contains(@Nonnull final GeoPoint point); @Nonnull @Override GeoRectangle translate(@Nonnull final GeoVector vector); @Nonnull @Override GeoRectangle moveTo(@Nonnull final GeoPoint origin); @Override @Nonnull Collection<GeoRectangle> pixelate(); @Nonnull GeoRectangle grow(@Nonnull final GeoPoint point); @Nonnull GeoRectangle grow(@Nonnull final GeoRectangle other); boolean isWrapped(); @Override boolean canEqual(@Nonnull final Object obj); @Override boolean equals(@Nullable final Object obj); @Override int hashCode(); static final GeoRectangle WORLD; }
@Test public void testWithNorthEast() { LOG.info("testWithNorthEast"); Assert.assertTrue(y2.equals(x.withNorthEast(y2).getNorthEast())); Assert.assertTrue(x2.equals(y.withNorthEast(x2).getNorthEast())); }