Record Class SealedHierarchyResult
java.lang.Object
java.lang.Record
dev.archunitjava.model.SealedHierarchyResult
public record SealedHierarchyResult(JavaTypeName type, boolean sealed, List<JavaTypeName> declaredPermittedSubclasses, List<JavaTypeName> observedDirectSubclasses, List<JavaTypeName> missingPermittedSubclasses, List<SealedHierarchyDiagnostic> diagnostics, boolean complete)
extends Record
Declared and observed evidence for one possibly sealed type.
-
Constructor Summary
ConstructorsConstructorDescriptionSealedHierarchyResult(JavaTypeName type, boolean sealed, List<JavaTypeName> declaredPermittedSubclasses, List<JavaTypeName> observedDirectSubclasses, List<JavaTypeName> missingPermittedSubclasses, List<SealedHierarchyDiagnostic> diagnostics, boolean complete) Creates an instance of aSealedHierarchyResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancomplete()Returns the value of thecompleterecord component.Returns the value of thedeclaredPermittedSubclassesrecord component.Returns the value of thediagnosticsrecord 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 themissingPermittedSubclassesrecord component.Returns the value of theobservedDirectSubclassesrecord component.booleansealed()Returns the value of thesealedrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
SealedHierarchyResult
public SealedHierarchyResult(JavaTypeName type, boolean sealed, List<JavaTypeName> declaredPermittedSubclasses, List<JavaTypeName> observedDirectSubclasses, List<JavaTypeName> missingPermittedSubclasses, List<SealedHierarchyDiagnostic> diagnostics, boolean complete) Creates an instance of aSealedHierarchyResultrecord class.- Parameters:
type- the value for thetyperecord componentsealed- the value for thesealedrecord componentdeclaredPermittedSubclasses- the value for thedeclaredPermittedSubclassesrecord componentobservedDirectSubclasses- the value for theobservedDirectSubclassesrecord componentmissingPermittedSubclasses- the value for themissingPermittedSubclassesrecord componentdiagnostics- the value for thediagnosticsrecord componentcomplete- the value for thecompleterecord 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. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
sealed
public boolean sealed()Returns the value of thesealedrecord component.- Returns:
- the value of the
sealedrecord component
-
declaredPermittedSubclasses
Returns the value of thedeclaredPermittedSubclassesrecord component.- Returns:
- the value of the
declaredPermittedSubclassesrecord component
-
observedDirectSubclasses
Returns the value of theobservedDirectSubclassesrecord component.- Returns:
- the value of the
observedDirectSubclassesrecord component
-
missingPermittedSubclasses
Returns the value of themissingPermittedSubclassesrecord component.- Returns:
- the value of the
missingPermittedSubclassesrecord component
-
diagnostics
Returns the value of thediagnosticsrecord component.- Returns:
- the value of the
diagnosticsrecord component
-
complete
public boolean complete()Returns the value of thecompleterecord component.- Returns:
- the value of the
completerecord component
-