Class Report

    • Method Detail

      • getSuppressedViolations

        public List<Report.SuppressedViolation> getSuppressedViolations()
        Returns an unmodifiable list of violations that were suppressed.
      • getViolations

        public List<RuleViolation> getViolations()
        Returns an unmodifiable list of violations that have been recorded until now. None of those violations were suppressed.

        The violations list is sorted with RuleViolation.DEFAULT_COMPARATOR.

      • getProcessingErrors

        public List<Report.ProcessingError> getProcessingErrors()
        Returns an unmodifiable list of processing errors that have been recorded until now.
      • getConfigurationErrors

        public List<Report.ConfigurationError> getConfigurationErrors()
        Returns an unmodifiable list of configuration errors that have been recorded until now.
      • filterViolations

        public Report filterViolations​(Predicate<RuleViolation> filter)
        Creates a new report taking all the information from this report, but filtering the violations.
        Parameters:
        filter - when true, the violation will be kept.
        Returns:
        copy of this report
      • union

        public Report union​(Report other)
        Creates a new report by combining this report with another report. The lowest start time and greatest end time are kept in the copy.
        Parameters:
        other - the other report to combine
        Returns:
        a new report which is the combination of this and the other report.