Record Class GenericMethodSignature
java.lang.Object
java.lang.Record
dev.archunitjava.model.GenericMethodSignature
public record GenericMethodSignature(List<GenericTypeParameter> typeParameters, List<GenericType> parameterTypes, GenericType returnType, List<GenericType> throwsTypes)
extends Record
Parsed generic signature of a method or constructor.
-
Constructor Summary
ConstructorsConstructorDescriptionGenericMethodSignature(List<GenericTypeParameter> typeParameters, List<GenericType> parameterTypes, GenericType returnType, List<GenericType> throwsTypes) Creates an instance of aGenericMethodSignaturerecord 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 theparameterTypesrecord component.Returns the value of thereturnTyperecord component.Returns the value of thethrowsTypesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetypeParametersrecord component.
-
Constructor Details
-
GenericMethodSignature
public GenericMethodSignature(List<GenericTypeParameter> typeParameters, List<GenericType> parameterTypes, GenericType returnType, List<GenericType> throwsTypes) Creates an instance of aGenericMethodSignaturerecord class.- Parameters:
typeParameters- the value for thetypeParametersrecord componentparameterTypes- the value for theparameterTypesrecord componentreturnType- the value for thereturnTyperecord componentthrowsTypes- the value for thethrowsTypesrecord 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
-
parameterTypes
Returns the value of theparameterTypesrecord component.- Returns:
- the value of the
parameterTypesrecord component
-
returnType
Returns the value of thereturnTyperecord component.- Returns:
- the value of the
returnTyperecord component
-
throwsTypes
Returns the value of thethrowsTypesrecord component.- Returns:
- the value of the
throwsTypesrecord component
-