Record Class CycleAnalysisResult
java.lang.Object
java.lang.Record
dev.archunitjava.projection.CycleAnalysisResult
public record CycleAnalysisResult(List<StronglyConnectedComponent> components, List<ElementaryCycle> cycles, boolean enumerationPerformed, boolean enumerationTruncated, long traversedEdges)
extends Record
Pure cycle-analysis output, including whether diagnostic enumeration hit a bound.
-
Constructor Summary
ConstructorsConstructorDescriptionCycleAnalysisResult(List<StronglyConnectedComponent> components, List<ElementaryCycle> cycles, boolean enumerationPerformed, boolean enumerationTruncated, long traversedEdges) Creates an instance of aCycleAnalysisResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponentsrecord component.cycles()Returns the value of thecyclesrecord component.booleanReturns the value of theenumerationPerformedrecord component.booleanReturns the value of theenumerationTruncatedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.longReturns the value of thetraversedEdgesrecord component.
-
Constructor Details
-
CycleAnalysisResult
public CycleAnalysisResult(List<StronglyConnectedComponent> components, List<ElementaryCycle> cycles, boolean enumerationPerformed, boolean enumerationTruncated, long traversedEdges) Creates an instance of aCycleAnalysisResultrecord class.- Parameters:
components- the value for thecomponentsrecord componentcycles- the value for thecyclesrecord componentenumerationPerformed- the value for theenumerationPerformedrecord componentenumerationTruncated- the value for theenumerationTruncatedrecord componenttraversedEdges- the value for thetraversedEdgesrecord component
-
-
Method Details
-
cyclicComponents
-
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. -
components
Returns the value of thecomponentsrecord component.- Returns:
- the value of the
componentsrecord component
-
cycles
Returns the value of thecyclesrecord component.- Returns:
- the value of the
cyclesrecord component
-
enumerationPerformed
public boolean enumerationPerformed()Returns the value of theenumerationPerformedrecord component.- Returns:
- the value of the
enumerationPerformedrecord component
-
enumerationTruncated
public boolean enumerationTruncated()Returns the value of theenumerationTruncatedrecord component.- Returns:
- the value of the
enumerationTruncatedrecord component
-
traversedEdges
public long traversedEdges()Returns the value of thetraversedEdgesrecord component.- Returns:
- the value of the
traversedEdgesrecord component
-