Package org.egothor.methodatlas
Record Class DeltaReport.DeltaResult
java.lang.Object
java.lang.Record
org.egothor.methodatlas.DeltaReport.DeltaResult
- Record Components:
beforePath- path to the before CSV fileafterPath- path to the after CSV filebeforeTimestamp-scan_timestampmetadata extracted from the before file, ornullwhen the file was produced without-emit-metadataafterTimestamp-scan_timestampmetadata extracted from the after file, ornulltotalBefore- total number of test methods in the before scantotalAfter- total number of test methods in the after scansecurityRelevantBefore- number of security-relevant methods in the before scan;0when no AI columns were presentsecurityRelevantAfter- number of security-relevant methods in the after scan;0when no AI columns were presententries- unmodifiable list of changed entries in (fqcn, method) orderunchangedCount- number of methods present in both scans with no detected differences
- Enclosing class:
DeltaReport
public static record DeltaReport.DeltaResult(Path beforePath, Path afterPath, String beforeTimestamp, String afterTimestamp, int totalBefore, int totalAfter, int securityRelevantBefore, int securityRelevantAfter, List<DeltaEntry> entries, int unchangedCount)
extends Record
The aggregate result of comparing two MethodAtlas scan outputs.
The entries() list contains only changed methods (ADDED, REMOVED,
MODIFIED). Unchanged methods are represented only by the
unchangedCount() counter to keep the report concise.
-
Constructor Summary
ConstructorsConstructorDescriptionDeltaResult(Path beforePath, Path afterPath, String beforeTimestamp, String afterTimestamp, int totalBefore, int totalAfter, int securityRelevantBefore, int securityRelevantAfter, List<DeltaEntry> entries, int unchangedCount) Creates an instance of aDeltaResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number ofDeltaEntry.ChangeType.ADDEDentries.Returns the value of theafterPathrecord component.Returns the value of theafterTimestamprecord component.Returns the value of thebeforePathrecord component.Returns the value of thebeforeTimestamprecord component.entries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the number ofDeltaEntry.ChangeType.MODIFIEDentries.intReturns the number ofDeltaEntry.ChangeType.REMOVEDentries.intReturns the value of thesecurityRelevantAfterrecord component.intReturns the value of thesecurityRelevantBeforerecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalAfterrecord component.intReturns the value of thetotalBeforerecord component.intReturns the value of theunchangedCountrecord component.
-
Constructor Details
-
DeltaResult
public DeltaResult(Path beforePath, Path afterPath, String beforeTimestamp, String afterTimestamp, int totalBefore, int totalAfter, int securityRelevantBefore, int securityRelevantAfter, List<DeltaEntry> entries, int unchangedCount) Creates an instance of aDeltaResultrecord class.- Parameters:
beforePath- the value for thebeforePathrecord componentafterPath- the value for theafterPathrecord componentbeforeTimestamp- the value for thebeforeTimestamprecord componentafterTimestamp- the value for theafterTimestamprecord componenttotalBefore- the value for thetotalBeforerecord componenttotalAfter- the value for thetotalAfterrecord componentsecurityRelevantBefore- the value for thesecurityRelevantBeforerecord componentsecurityRelevantAfter- the value for thesecurityRelevantAfterrecord componententries- the value for theentriesrecord componentunchangedCount- the value for theunchangedCountrecord component
-
-
Method Details
-
addedCount
public int addedCount()Returns the number ofDeltaEntry.ChangeType.ADDEDentries. -
removedCount
public int removedCount()Returns the number ofDeltaEntry.ChangeType.REMOVEDentries. -
modifiedCount
public int modifiedCount()Returns the number ofDeltaEntry.ChangeType.MODIFIEDentries. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
beforePath
Returns the value of thebeforePathrecord component.- Returns:
- the value of the
beforePathrecord component
-
afterPath
Returns the value of theafterPathrecord component.- Returns:
- the value of the
afterPathrecord component
-
beforeTimestamp
Returns the value of thebeforeTimestamprecord component.- Returns:
- the value of the
beforeTimestamprecord component
-
afterTimestamp
Returns the value of theafterTimestamprecord component.- Returns:
- the value of the
afterTimestamprecord component
-
totalBefore
public int totalBefore()Returns the value of thetotalBeforerecord component.- Returns:
- the value of the
totalBeforerecord component
-
totalAfter
public int totalAfter()Returns the value of thetotalAfterrecord component.- Returns:
- the value of the
totalAfterrecord component
-
securityRelevantBefore
public int securityRelevantBefore()Returns the value of thesecurityRelevantBeforerecord component.- Returns:
- the value of the
securityRelevantBeforerecord component
-
securityRelevantAfter
public int securityRelevantAfter()Returns the value of thesecurityRelevantAfterrecord component.- Returns:
- the value of the
securityRelevantAfterrecord component
-
entries
Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-
unchangedCount
public int unchangedCount()Returns the value of theunchangedCountrecord component.- Returns:
- the value of the
unchangedCountrecord component
-