Record Class ReachabilityRuleOptions
java.lang.Object
java.lang.Record
dev.archunitjava.rules.ReachabilityRuleOptions
public record ReachabilityRuleOptions(ReachabilityAssumption assumption, Set<DependencyKind> includedKinds, int maximumSubjectsPerRegion, int maximumEvidenceEntries)
extends Record
Explicit dependency semantics and finding bounds for reachability rules.
-
Constructor Summary
ConstructorsConstructorDescriptionReachabilityRuleOptions(ReachabilityAssumption assumption, Set<DependencyKind> includedKinds, int maximumSubjectsPerRegion, int maximumEvidenceEntries) Creates an instance of aReachabilityRuleOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassumptionrecord component.static ReachabilityRuleOptionsfinal 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 themaximumSubjectsPerRegionrecord component.static ReachabilityRuleOptionsfinal StringtoString()Returns a string representation of this record class.withBounds(int subjectsPerRegion, int evidenceEntries)
-
Constructor Details
-
ReachabilityRuleOptions
public ReachabilityRuleOptions(ReachabilityAssumption assumption, Set<DependencyKind> includedKinds, int maximumSubjectsPerRegion, int maximumEvidenceEntries) Creates an instance of aReachabilityRuleOptionsrecord class.- Parameters:
assumption- the value for theassumptionrecord componentincludedKinds- the value for theincludedKindsrecord componentmaximumSubjectsPerRegion- the value for themaximumSubjectsPerRegionrecord componentmaximumEvidenceEntries- the value for themaximumEvidenceEntriesrecord component
-
-
Method Details
-
publicLibraryDefaults
-
configuredEntryPoints
-
includingOnly
-
withBounds
-
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. -
assumption
Returns the value of theassumptionrecord component.- Returns:
- the value of the
assumptionrecord component
-
includedKinds
Returns the value of theincludedKindsrecord component.- Returns:
- the value of the
includedKindsrecord component
-
maximumSubjectsPerRegion
public int maximumSubjectsPerRegion()Returns the value of themaximumSubjectsPerRegionrecord component.- Returns:
- the value of the
maximumSubjectsPerRegionrecord component
-
maximumEvidenceEntries
public int maximumEvidenceEntries()Returns the value of themaximumEvidenceEntriesrecord component.- Returns:
- the value of the
maximumEvidenceEntriesrecord component
-