Class AppointmentStatsUtils

java.lang.Object
xyz.nardone.agenda_fps.servizio.AppointmentStatsUtils

public final class AppointmentStatsUtils extends Object
Utility methods for computing appointment statistics.
  • Method Details

    • countByEsito

      public static int countByEsito(List<Appointment> appointments, String esito)
      Counts appointments matching a specific outcome (esito).
      Parameters:
      appointments - the appointment list to scan
      esito - the outcome label to match
      Returns:
      the number of matching appointments
    • sumPremi

      public static int sumPremi(List<Appointment> appointments)
      Sums premio values, treating null as 0.
      Parameters:
      appointments - the appointment list to scan
      Returns:
      the sum of premio values