Record Class HierarchyQueryResult
java.lang.Object
java.lang.Record
dev.archunitjava.model.HierarchyQueryResult
public record HierarchyQueryResult(List<JavaTypeName> supertypes, List<JavaTypeName> missingTypes, boolean complete, boolean cycleDetected)
extends Record
Bounded transitive hierarchy result with explicit gaps and cycle evidence.
-
Constructor Summary
ConstructorsConstructorDescriptionHierarchyQueryResult(List<JavaTypeName> supertypes, List<JavaTypeName> missingTypes, boolean complete, boolean cycleDetected) Creates an instance of aHierarchyQueryResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancomplete()Returns the value of thecompleterecord component.booleanReturns the value of thecycleDetectedrecord component.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 themissingTypesrecord component.Returns the value of thesupertypesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HierarchyQueryResult
public HierarchyQueryResult(List<JavaTypeName> supertypes, List<JavaTypeName> missingTypes, boolean complete, boolean cycleDetected) Creates an instance of aHierarchyQueryResultrecord class.- Parameters:
supertypes- the value for thesupertypesrecord componentmissingTypes- the value for themissingTypesrecord componentcomplete- the value for thecompleterecord componentcycleDetected- the value for thecycleDetectedrecord component
-
-
Method Details
-
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. -
supertypes
Returns the value of thesupertypesrecord component.- Returns:
- the value of the
supertypesrecord component
-
missingTypes
Returns the value of themissingTypesrecord component.- Returns:
- the value of the
missingTypesrecord component
-
complete
public boolean complete()Returns the value of thecompleterecord component.- Returns:
- the value of the
completerecord component
-
cycleDetected
public boolean cycleDetected()Returns the value of thecycleDetectedrecord component.- Returns:
- the value of the
cycleDetectedrecord component
-