public boolean collides(final Rectangle2D shape){
  final double x=shape.getX();
  final double y=shape.getY();
  final double w=shape.getWidth();
  final double h=shape.getHeight();
  return collides(x,y,w,h);
}

public boolean collides ( final Rectangle2D shape ) { final double x = shape . getX ( ) ; final double y = shape . getY ( ) ; final double w = shape . getWidth ( ) ; final double h = shape . getHeight ( ) ; return collides ( x , y , w , h ) ; }
check if a rectangle overlaps colliding areas .
