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 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 a SnapshotEdge record class.
      Parameters:
      id - the value for the id record component
      originId - the value for the originId record component
      targetId - the value for the targetId record component
      dependencyKinds - the value for the dependencyKinds record component
      sourceEdgeCount - the value for the sourceEdgeCount record component
      sourceEdges - the value for the sourceEdges record component
      evidenceCount - the value for the evidenceCount record component
      evidence - the value for the evidence record component
      omittedEvidenceCount - the value for the omittedEvidenceCount record component
  • Method Details

    • compareTo

      public int compareTo(SnapshotEdge other)
      Specified by:
      compareTo in interface Comparable<SnapshotEdge>
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • originId

      public String originId()
      Returns the value of the originId record component.
      Returns:
      the value of the originId record component
    • targetId

      public String targetId()
      Returns the value of the targetId record component.
      Returns:
      the value of the targetId record component
    • dependencyKinds

      public List<String> dependencyKinds()
      Returns the value of the dependencyKinds record component.
      Returns:
      the value of the dependencyKinds record component
    • sourceEdgeCount

      public int sourceEdgeCount()
      Returns the value of the sourceEdgeCount record component.
      Returns:
      the value of the sourceEdgeCount record component
    • sourceEdges

      public List<String> sourceEdges()
      Returns the value of the sourceEdges record component.
      Returns:
      the value of the sourceEdges record component
    • evidenceCount

      public int evidenceCount()
      Returns the value of the evidenceCount record component.
      Returns:
      the value of the evidenceCount record component
    • evidence

      public List<SnapshotEvidence> evidence()
      Returns the value of the evidence record component.
      Returns:
      the value of the evidence record component
    • omittedEvidenceCount

      public int omittedEvidenceCount()
      Returns the value of the omittedEvidenceCount record component.
      Returns:
      the value of the omittedEvidenceCount record component