Class ReportGeneratorForFiles

  • All Implemented Interfaces:
    IReportGenerator

    public class ReportGeneratorForFiles
    extends java.lang.Object
    implements IReportGenerator

    ReportGeneratorForFiles

    Responsible for saving the restaurant statistics in plain text format
    Since:
    2017-07-22
    Version:
    1.0
    • Method Summary

      Modifier and Type Method Description
      void reportOnDishes​(java.util.ArrayList<Dish> menu)
      Saves the statistics for the dishes
      void reportOnEmps​(java.util.ArrayList<Employee> personnel)
      Saves the statistics for the employees
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReportGeneratorForFiles

        public ReportGeneratorForFiles()
    • Method Detail

      • reportOnEmps

        public void reportOnEmps​(java.util.ArrayList<Employee> personnel)
        Saves the statistics for the employees
        Specified by:
        reportOnEmps in interface IReportGenerator
        Parameters:
        personnel - : list of employees
      • reportOnDishes

        public void reportOnDishes​(java.util.ArrayList<Dish> menu)
        Saves the statistics for the dishes
        Specified by:
        reportOnDishes in interface IReportGenerator
        Parameters:
        menu - : list of dishes