Interface ICodeScanStatisticsService

All Known Implementing Classes:
CodeScanStatisticsService

public interface ICodeScanStatisticsService
  • Method Details

    • incrementByCode

      void incrementByCode(String code)
      Increment the scan count for the given code.

      If the code does not exist in the statistics, it will be added.

      Parameters:
      code - The code to increment the scan count for
    • getByCode

      Get statistics for a specific code.

      If the code has item data, the item data will be included in the result, and the knownCode flag set to true.

      Parameters:
      code - The code to get statistics for
      Returns:
      Statistics for the given code, if it exists, Optional.empty() otherwise
    • getStatistics

      Stream<CodeScanReportResult> getStatistics()
      Get statistics for all scanned codes without any filtering.

      Any item code which has item data will have the item data included in the result, and the knownCode flag set to true.

      Returns:
      List of statistics for all scanned codes