@PublicApi public class CapturingReporter extends java.lang.Object implements DifferenceReporter
Constructor and Description |
---|
CapturingReporter() |
Modifier and Type | Method and 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 finished
|
void |
report(DiffEvent differenceEvent)
Called to report a difference
|
public void report(DiffEvent differenceEvent)
DifferenceReporter
report
in interface DifferenceReporter
differenceEvent
- the event describing the differencepublic void onEnd()
DifferenceReporter
onEnd
in interface DifferenceReporter
public java.util.List<DiffEvent> getEvents()
public java.util.List<DiffEvent> getInfos()
public java.util.List<DiffEvent> getBreakages()
public java.util.List<DiffEvent> getDangers()
public int getInfoCount()
public int getBreakageCount()
public int getDangerCount()