boolean (final WatchRequestImpl request, final WatchRequestImpl other) { if (request.myToWatchRecursively) { return other.myRootPath.startsWith(request.myRootPath); } return !other.myToWatchRecursively && request.myRootPath.equals(other.myRootPath); }