use of org.springframework.beans.support.MutableSortDefinition in project spring-petclinic by spring-projects.
the class Pet method getVisits.
public List<Visit> getVisits() {
List<Visit> sortedVisits = new ArrayList<>(getVisitsInternal());
PropertyComparator.sort(sortedVisits, new MutableSortDefinition("date", false, false));
return Collections.unmodifiableList(sortedVisits);
}
use of org.springframework.beans.support.MutableSortDefinition in project spring-petclinic by spring-projects.
the class Vet method getSpecialties.
@XmlElement
public List<Specialty> getSpecialties() {
List<Specialty> sortedSpecs = new ArrayList<>(getSpecialtiesInternal());
PropertyComparator.sort(sortedSpecs, new MutableSortDefinition("name", true, true));
return Collections.unmodifiableList(sortedSpecs);
}
use of org.springframework.beans.support.MutableSortDefinition in project spring-petclinic by spring-projects.
the class Owner method getPets.
public List<Pet> getPets() {
List<Pet> sortedPets = new ArrayList<>(getPetsInternal());
PropertyComparator.sort(sortedPets, new MutableSortDefinition("name", true, true));
return Collections.unmodifiableList(sortedPets);
}
Aggregations