code: public void set(Rectangle rectangle) {
          set(rectangle.getX(), rectangle.getY(), rectangle.getWidth(), rectangle.getHeight());
      }
docs: Sets the rectangle to be an exact copy of the provided one.
  
  @param rectangle The rectangle to copy