/** @return an unmodifiable list of cells containing dead points (aka dead cells) */
 public List<Cell> getDeadCells() {
   ArrayList<Cell> deadCells = new ArrayList<Cell>();
   int row, col;
   for (DeadPoint dp : deadPoints) {
     row = getCorrespondingRow(dp.getY());
     col = getCorrespondingCol(dp.getX());
     if (valid(row, col)) deadCells.add(cellContainer[row][col]);
   }
   return Collections.unmodifiableList(deadCells);
 }
Пример #2
0
 @XmlElement
 public List<Specialty> getSpecialties() {
   List<Specialty> sortedSpecs = new ArrayList<Specialty>(getSpecialtiesInternal());
   PropertyComparator.sort(sortedSpecs, new MutableSortDefinition("name", true, true));
   return Collections.unmodifiableList(sortedSpecs);
 }
 public List<Pet> getPets() {
   List<Pet> sortedPets = new ArrayList<Pet>(getPetsInternal());
   return Collections.unmodifiableList(sortedPets);
 }
Пример #4
0
 public List<Visit> getVisits() {
   List<Visit> sortedVisits = new ArrayList<Visit>(getVisitsInternal());
   PropertyComparator.sort(sortedVisits, new MutableSortDefinition("date", false, false));
   return Collections.unmodifiableList(sortedVisits);
 }