public void addSpecialty(Specialty specialty) { getSpecialtiesInternal().add(specialty); }
public int getNrOfSpecialties() { return getSpecialtiesInternal().size(); }
@XmlElement public List<Specialty> getSpecialties() { List<Specialty> sortedSpecs = new ArrayList<>(getSpecialtiesInternal()); PropertyComparator.sort(sortedSpecs, new MutableSortDefinition("name", true, true)); return Collections.unmodifiableList(sortedSpecs); }