Record Class CycleEnumerationOptions
java.lang.Object
java.lang.Record
dev.archunitjava.projection.CycleEnumerationOptions
public record CycleEnumerationOptions(boolean enabled, int maximumCycles, int maximumCycleLength, long maximumTraversedEdges)
extends Record
Explicit resource bounds for optional elementary-cycle diagnostics.
-
Constructor Summary
ConstructorsConstructorDescriptionCycleEnumerationOptions(boolean enabled, int maximumCycles, int maximumCycleLength, long maximumTraversedEdges) Creates an instance of aCycleEnumerationOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CycleEnumerationOptionsbounded(int maximumCycles, int maximumCycleLength, long maximumTraversedEdges) static CycleEnumerationOptionsstatic CycleEnumerationOptionsdefaults()Conservative defaults suitable for interactive diagnostics.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaximumCycleLengthrecord component.intReturns the value of themaximumCyclesrecord component.longReturns the value of themaximumTraversedEdgesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CycleEnumerationOptions
public CycleEnumerationOptions(boolean enabled, int maximumCycles, int maximumCycleLength, long maximumTraversedEdges) Creates an instance of aCycleEnumerationOptionsrecord class.- Parameters:
enabled- the value for theenabledrecord componentmaximumCycles- the value for themaximumCyclesrecord componentmaximumCycleLength- the value for themaximumCycleLengthrecord componentmaximumTraversedEdges- the value for themaximumTraversedEdgesrecord component
-
-
Method Details
-
defaults
Conservative defaults suitable for interactive diagnostics. -
bounded
public static CycleEnumerationOptions bounded(int maximumCycles, int maximumCycleLength, long maximumTraversedEdges) -
componentsOnly
-
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 with thecomparemethod from their corresponding wrapper classes. -
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
maximumCycles
public int maximumCycles()Returns the value of themaximumCyclesrecord component.- Returns:
- the value of the
maximumCyclesrecord component
-
maximumCycleLength
public int maximumCycleLength()Returns the value of themaximumCycleLengthrecord component.- Returns:
- the value of the
maximumCycleLengthrecord component
-
maximumTraversedEdges
public long maximumTraversedEdges()Returns the value of themaximumTraversedEdgesrecord component.- Returns:
- the value of the
maximumTraversedEdgesrecord component
-