Open this page in the API Guide

Rect.equals Method

Indicates whether the specified rectangle is equal to the current rectangle.