Class CapturingReporter

java.lang.Object
graphql.schema.diff.reporting.CapturingReporter
All Implemented Interfaces:
DifferenceReporter

@PublicApi public class CapturingReporter extends Object implements DifferenceReporter
A reporter that captures all the difference events as they occur
  • Constructor Details

    • CapturingReporter

      public CapturingReporter()
  • Method Details

    • report

      public void report(DiffEvent differenceEvent)
      Description copied from interface: DifferenceReporter
      Called to report a difference
      Specified by:
      report in interface DifferenceReporter
      Parameters:
      differenceEvent - the event describing the difference
    • onEnd

      public void onEnd()
      Description copied from interface: DifferenceReporter
      Called when the difference operation if finished
      Specified by:
      onEnd in interface DifferenceReporter
    • getEvents

      public List<DiffEvent> getEvents()
    • getInfos

      public List<DiffEvent> getInfos()
    • getBreakages

      public List<DiffEvent> getBreakages()
    • getDangers

      public List<DiffEvent> getDangers()
    • getInfoCount

      public int getInfoCount()
    • getBreakageCount

      public int getBreakageCount()
    • getDangerCount

      public int getDangerCount()