Record Class DependencyEdge
java.lang.Object
java.lang.Record
dev.archunitjava.graph.DependencyEdge
- All Implemented Interfaces:
Comparable<DependencyEdge>
public record DependencyEdge(StableId origin, StableId target, DependencyKind kind, List<DependencyEvidence> evidence)
extends Record
implements Comparable<DependencyEdge>
One directed, typed dependency with all duplicate-free evidence.
-
Constructor Summary
ConstructorsConstructorDescriptionDependencyEdge(StableId origin, StableId target, DependencyKind kind, List<DependencyEvidence> evidence) Creates an instance of aDependencyEdgerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(DependencyEdge other) final booleanIndicates whether some other object is "equal to" this one.evidence()Returns the value of theevidencerecord component.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.origin()Returns the value of theoriginrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DependencyEdge
public DependencyEdge(StableId origin, StableId target, DependencyKind kind, List<DependencyEvidence> evidence) Creates an instance of aDependencyEdgerecord class.- Parameters:
origin- the value for theoriginrecord componenttarget- the value for thetargetrecord componentkind- the value for thekindrecord componentevidence- the value for theevidencerecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<DependencyEdge>
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
evidence
Returns the value of theevidencerecord component.- Returns:
- the value of the
evidencerecord component
-