/** * Add the given participant id if it doesn't exist. * * @param participantId the id of the participant that will be added. * @return {@code true} if the given participant id does not exist yet * in the set of participants, which means that a new * {@code wavelet.addParticipant()} has been queued. Otherwise, returns * {@code false}. */ @Override public boolean add(String participantId) { if (participants.contains(participantId)) { return false; } operationQueue.addParticipantToWavelet(wavelet, participantId); participants.add(participantId); return true; }