Record Class ElementaryCycle
java.lang.Object
java.lang.Record
dev.archunitjava.projection.ElementaryCycle
- All Implemented Interfaces:
Comparable<ElementaryCycle>
public record ElementaryCycle(List<StableId> nodes)
extends Record
implements Comparable<ElementaryCycle>
A directed elementary cycle, stored once with its lowest stable node first.
-
Constructor Summary
ConstructorsConstructorDescriptionElementaryCycle(List<StableId> nodes) Creates an instance of aElementaryCyclerecord class. -
Method Summary
Modifier and TypeMethodDescriptionThe diagnostic path including the closing occurrence of the first node.intcompareTo(ElementaryCycle other) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.nodes()Returns the value of thenodesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ElementaryCycle
-
-
Method Details
-
closedPath
-
compareTo
- Specified by:
compareToin interfaceComparable<ElementaryCycle>
-
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). -
nodes
-