class AssignmentUtils {

    static boolean taskIsCaughtUpOnClientOrNoCaughtUpClientsExist(final TaskId task,
                                                                  final UUID client,
                                                                  final Map<TaskId, SortedSet<UUID>> tasksToCaughtUpClients) {
        final Set<UUID> caughtUpClients = tasksToCaughtUpClients.get(task);
        return caughtUpClients == null || caughtUpClients.contains(client);
    }

    private  AssignmentUtils();

}