Record Class SnapshotEdge
java.lang.Object
java.lang.Record
dev.archunitjava.report.SnapshotEdge
- All Implemented Interfaces:
Comparable<SnapshotEdge>
public record SnapshotEdge(String id, String originId, String targetId, List<String> dependencyKinds, int sourceEdgeCount, List<String> sourceEdges, int evidenceCount, List<SnapshotEvidence> evidence, int omittedEvidenceCount)
extends Record
implements Comparable<SnapshotEdge>
One detached aggregated edge with retained source-edge and evidence counts.
-
Constructor Summary
ConstructorsConstructorDescriptionSnapshotEdge(String id, String originId, String targetId, List<String> dependencyKinds, int sourceEdgeCount, List<String> sourceEdges, int evidenceCount, List<SnapshotEvidence> evidence, int omittedEvidenceCount) Creates an instance of aSnapshotEdgerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(SnapshotEdge other) Returns the value of thedependencyKindsrecord component.final booleanIndicates whether some other object is "equal to" this one.evidence()Returns the value of theevidencerecord component.intReturns the value of theevidenceCountrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.intReturns the value of theomittedEvidenceCountrecord component.originId()Returns the value of theoriginIdrecord component.intReturns the value of thesourceEdgeCountrecord component.Returns the value of thesourceEdgesrecord component.targetId()Returns the value of thetargetIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SnapshotEdge
public SnapshotEdge(String id, String originId, String targetId, List<String> dependencyKinds, int sourceEdgeCount, List<String> sourceEdges, int evidenceCount, List<SnapshotEvidence> evidence, int omittedEvidenceCount) Creates an instance of aSnapshotEdgerecord class.- Parameters:
id- the value for theidrecord componentoriginId- the value for theoriginIdrecord componenttargetId- the value for thetargetIdrecord componentdependencyKinds- the value for thedependencyKindsrecord componentsourceEdgeCount- the value for thesourceEdgeCountrecord componentsourceEdges- the value for thesourceEdgesrecord componentevidenceCount- the value for theevidenceCountrecord componentevidence- the value for theevidencerecord componentomittedEvidenceCount- the value for theomittedEvidenceCountrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<SnapshotEdge>
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
originId
Returns the value of theoriginIdrecord component.- Returns:
- the value of the
originIdrecord component
-
targetId
Returns the value of thetargetIdrecord component.- Returns:
- the value of the
targetIdrecord component
-
dependencyKinds
-
sourceEdgeCount
public int sourceEdgeCount()Returns the value of thesourceEdgeCountrecord component.- Returns:
- the value of the
sourceEdgeCountrecord component
-
sourceEdges
-
evidenceCount
public int evidenceCount()Returns the value of theevidenceCountrecord component.- Returns:
- the value of the
evidenceCountrecord component
-
evidence
Returns the value of theevidencerecord component.- Returns:
- the value of the
evidencerecord component
-
omittedEvidenceCount
public int omittedEvidenceCount()Returns the value of theomittedEvidenceCountrecord component.- Returns:
- the value of the
omittedEvidenceCountrecord component
-