Record Class ExternalTypeStub
java.lang.Object
java.lang.Record
dev.archunitjava.model.ExternalTypeStub
public record ExternalTypeStub(JavaTypeName name, Optional<JavaTypeKind> kind, Optional<JvmReferenceType> superclass, List<JvmReferenceType> directInterfaces, boolean hierarchyComplete)
extends Record
Caller-supplied hierarchy facts for a type that was not imported.
-
Constructor Summary
ConstructorsConstructorDescriptionExternalTypeStub(JavaTypeName name, Optional<JavaTypeKind> kind, Optional<JvmReferenceType> superclass, List<JvmReferenceType> directInterfaces, boolean hierarchyComplete) Creates an instance of aExternalTypeStubrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExternalTypeStubcomplete(String binaryName, JavaTypeKind kind, JvmReferenceType superclass, List<JvmReferenceType> interfaces) Returns the value of thedirectInterfacesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehierarchyCompleterecord component.static ExternalTypeStubincomplete(String binaryName) kind()Returns the value of thekindrecord component.name()Returns the value of thenamerecord component.Returns the value of thesuperclassrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExternalTypeStub
public ExternalTypeStub(JavaTypeName name, Optional<JavaTypeKind> kind, Optional<JvmReferenceType> superclass, List<JvmReferenceType> directInterfaces, boolean hierarchyComplete) Creates an instance of aExternalTypeStubrecord class.- Parameters:
name- the value for thenamerecord componentkind- the value for thekindrecord componentsuperclass- the value for thesuperclassrecord componentdirectInterfaces- the value for thedirectInterfacesrecord componenthierarchyComplete- the value for thehierarchyCompleterecord component
-
-
Method Details
-
incomplete
-
complete
public static ExternalTypeStub complete(String binaryName, JavaTypeKind kind, JvmReferenceType superclass, List<JvmReferenceType> interfaces) -
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. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
superclass
Returns the value of thesuperclassrecord component.- Returns:
- the value of the
superclassrecord component
-
directInterfaces
Returns the value of thedirectInterfacesrecord component.- Returns:
- the value of the
directInterfacesrecord component
-
hierarchyComplete
public boolean hierarchyComplete()Returns the value of thehierarchyCompleterecord component.- Returns:
- the value of the
hierarchyCompleterecord component
-