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 int
getBreakageCount()
java.util.List<DiffEvent>
getBreakages()
int
getDangerCount()
java.util.List<DiffEvent>
getDangers()
java.util.List<DiffEvent>
getEvents()
int
getInfoCount()
java.util.List<DiffEvent>
getInfos()
void
onEnd()
Called when the difference operation if finishedvoid
report(DiffEvent differenceEvent)
Called to report a difference
-
-
-
Method Detail
-
report
public void report(DiffEvent differenceEvent)
Description copied from interface:DifferenceReporter
Called to report a difference- Specified by:
report
in interfaceDifferenceReporter
- 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 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()
-
-