public Map<ParticipantRole, Integer> getRoleCount() { final Map<ParticipantRole, Integer> retVal = new HashMap<ParticipantRole, Integer>(); for (Participant p : this) { Integer rc = retVal.get(p.getRole()); if (rc == null) { rc = 0; } rc++; retVal.put(p.getRole(), rc); } return retVal; }
public static void copyParticipantInfo(Participant src, Participant dest) { dest.setId(src.getId()); dest.setBirthDate(src.getBirthDate()); dest.setAge(src.getAge(null)); dest.setEducation(src.getEducation()); dest.setGroup(src.getGroup()); dest.setLanguage(src.getLanguage()); dest.setName(src.getName()); dest.setRole(src.getRole()); dest.setSES(src.getSES()); dest.setSex(src.getSex()); }