Record Class GenericClassSignature
java.lang.Object
java.lang.Record
dev.archunitjava.model.GenericClassSignature
public record GenericClassSignature(List<GenericTypeParameter> typeParameters, GenericType.ClassType superclass, List<GenericType.ClassType> interfaces)
extends Record
Parsed generic signature of a class or interface.
-
Constructor Summary
ConstructorsConstructorDescriptionGenericClassSignature(List<GenericTypeParameter> typeParameters, GenericType.ClassType superclass, List<GenericType.ClassType> interfaces) Creates an instance of aGenericClassSignaturerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinterfacesrecord component.Returns the value of thesuperclassrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetypeParametersrecord component.
-
Constructor Details
-
GenericClassSignature
public GenericClassSignature(List<GenericTypeParameter> typeParameters, GenericType.ClassType superclass, List<GenericType.ClassType> interfaces) Creates an instance of aGenericClassSignaturerecord class.- Parameters:
typeParameters- the value for thetypeParametersrecord componentsuperclass- the value for thesuperclassrecord componentinterfaces- the value for theinterfacesrecord component
-
-
Method Details
-
referencedTypes
-
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 withObjects::equals(Object,Object). -
typeParameters
Returns the value of thetypeParametersrecord component.- Returns:
- the value of the
typeParametersrecord component
-
superclass
Returns the value of thesuperclassrecord component.- Returns:
- the value of the
superclassrecord component
-
interfaces
Returns the value of theinterfacesrecord component.- Returns:
- the value of the
interfacesrecord component
-