Package graphql.schema.diff.reporting
Class CapturingReporter
- java.lang.Object
 - 
- graphql.schema.diff.reporting.CapturingReporter
 
 
- 
- All Implemented Interfaces:
 DifferenceReporter
@PublicApi public class CapturingReporter extends java.lang.Object implements DifferenceReporter
A reporter that captures all the difference events as they occur 
- 
- 
Constructor Summary
Constructors Constructor Description CapturingReporter() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBreakageCount()java.util.List<DiffEvent>getBreakages()intgetDangerCount()java.util.List<DiffEvent>getDangers()java.util.List<DiffEvent>getEvents()intgetInfoCount()java.util.List<DiffEvent>getInfos()voidonEnd()Called when the difference operation if finishedvoidreport(DiffEvent differenceEvent)Called to report a difference 
 - 
 
- 
- 
Method Detail
- 
report
public void report(DiffEvent differenceEvent)
Description copied from interface:DifferenceReporterCalled to report a difference- Specified by:
 reportin interfaceDifferenceReporter- Parameters:
 differenceEvent- the event describing the difference
 
- 
onEnd
public void onEnd()
Description copied from interface:DifferenceReporterCalled when the difference operation if finished- Specified by:
 onEndin interfaceDifferenceReporter
 
- 
getEvents
public java.util.List<DiffEvent> getEvents()
 
- 
getInfos
public java.util.List<DiffEvent> getInfos()
 
- 
getBreakages
public java.util.List<DiffEvent> getBreakages()
 
- 
getDangers
public java.util.List<DiffEvent> getDangers()
 
- 
getInfoCount
public int getInfoCount()
 
- 
getBreakageCount
public int getBreakageCount()
 
- 
getDangerCount
public int getDangerCount()
 
 - 
 
 -