isDone method

bool isDone()
override

Reports whether visiting components can be terminated. Once this method returns true, it must continue to return true on every subsequent call.

@return true if visiting can be terminated.

Implementation

bool isDone() {
  return containsPoint == true;
}