Class AppointmentStatsUtils
java.lang.Object
xyz.nardone.agenda_fps.servizio.AppointmentStatsUtils
Utility methods for computing appointment statistics.
-
Method Summary
Modifier and TypeMethodDescriptionstatic intcountByEsito(List<Appointment> appointments, String esito) Counts appointments matching a specific outcome (esito).static intsumPremi(List<Appointment> appointments) Sums premio values, treating null as 0.
-
Method Details
-
countByEsito
Counts appointments matching a specific outcome (esito).- Parameters:
appointments- the appointment list to scanesito- the outcome label to match- Returns:
- the number of matching appointments
-
sumPremi
Sums premio values, treating null as 0.- Parameters:
appointments- the appointment list to scan- Returns:
- the sum of premio values
-