Record Class CycleRuleOptions
java.lang.Object
java.lang.Record
dev.archunitjava.rules.CycleRuleOptions
public record CycleRuleOptions(Set<DependencyKind> includedKinds, TypeUseDependencyPolicy typeUseDependencies, SyntheticEdgePolicy syntheticEdges, int maximumRepresentativeLength, long maximumTraversedEdgesPerComponent, int maximumEvidenceEntries)
extends Record
Explicit dependency semantics and output bounds for type and package cycle rules.
-
Constructor Summary
ConstructorsConstructorDescriptionCycleRuleOptions(Set<DependencyKind> includedKinds, TypeUseDependencyPolicy typeUseDependencies, SyntheticEdgePolicy syntheticEdges, int maximumRepresentativeLength, long maximumTraversedEdgesPerComponent, int maximumEvidenceEntries) Creates an instance of aCycleRuleOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CycleRuleOptionsdefaults()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theincludedKindsrecord component.includingOnly(Set<DependencyKind> kinds) intReturns the value of themaximumEvidenceEntriesrecord component.intReturns the value of themaximumRepresentativeLengthrecord component.longReturns the value of themaximumTraversedEdgesPerComponentrecord component.Returns the value of thesyntheticEdgesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetypeUseDependenciesrecord component.withBounds(int representativeLength, long traversedEdgesPerComponent, int evidenceEntries)
-
Constructor Details
-
CycleRuleOptions
public CycleRuleOptions(Set<DependencyKind> includedKinds, TypeUseDependencyPolicy typeUseDependencies, SyntheticEdgePolicy syntheticEdges, int maximumRepresentativeLength, long maximumTraversedEdgesPerComponent, int maximumEvidenceEntries) Creates an instance of aCycleRuleOptionsrecord class.- Parameters:
includedKinds- the value for theincludedKindsrecord componenttypeUseDependencies- the value for thetypeUseDependenciesrecord componentsyntheticEdges- the value for thesyntheticEdgesrecord componentmaximumRepresentativeLength- the value for themaximumRepresentativeLengthrecord componentmaximumTraversedEdgesPerComponent- the value for themaximumTraversedEdgesPerComponentrecord componentmaximumEvidenceEntries- the value for themaximumEvidenceEntriesrecord component
-
-
Method Details
-
defaults
-
includingOnly
-
withTypeUseDependencies
-
withSyntheticEdges
-
withBounds
public CycleRuleOptions withBounds(int representativeLength, long traversedEdgesPerComponent, int evidenceEntries) -
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. -
includedKinds
Returns the value of theincludedKindsrecord component.- Returns:
- the value of the
includedKindsrecord component
-
typeUseDependencies
Returns the value of thetypeUseDependenciesrecord component.- Returns:
- the value of the
typeUseDependenciesrecord component
-
syntheticEdges
Returns the value of thesyntheticEdgesrecord component.- Returns:
- the value of the
syntheticEdgesrecord component
-
maximumRepresentativeLength
public int maximumRepresentativeLength()Returns the value of themaximumRepresentativeLengthrecord component.- Returns:
- the value of the
maximumRepresentativeLengthrecord component
-
maximumTraversedEdgesPerComponent
public long maximumTraversedEdgesPerComponent()Returns the value of themaximumTraversedEdgesPerComponentrecord component.- Returns:
- the value of the
maximumTraversedEdgesPerComponentrecord component
-
maximumEvidenceEntries
public int maximumEvidenceEntries()Returns the value of themaximumEvidenceEntriesrecord component.- Returns:
- the value of the
maximumEvidenceEntriesrecord component
-