Record Class GenericFieldView
java.lang.Object
java.lang.Record
dev.archunitjava.model.GenericFieldView
public record GenericFieldView(JvmType erasedType, Optional<String> declaredSignature, Optional<GenericType> genericType, List<GenericSignatureDiagnostic> diagnostics)
extends Record
Erased field type plus independently parsed optional generic evidence.
-
Constructor Summary
ConstructorsConstructorDescriptionGenericFieldView(JvmType erasedType, Optional<String> declaredSignature, Optional<GenericType> genericType, List<GenericSignatureDiagnostic> diagnostics) Creates an instance of aGenericFieldViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedeclaredSignaturerecord component.Returns the value of thediagnosticsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerasedTyperecord component.Returns the value of thegenericTyperecord component.final inthashCode()Returns a hash code value for this object.referencedTypes(TypeReferenceEvidence evidence) final StringtoString()Returns a string representation of this record class.boolean
-
Constructor Details
-
GenericFieldView
public GenericFieldView(JvmType erasedType, Optional<String> declaredSignature, Optional<GenericType> genericType, List<GenericSignatureDiagnostic> diagnostics) Creates an instance of aGenericFieldViewrecord class.- Parameters:
erasedType- the value for theerasedTyperecord componentdeclaredSignature- the value for thedeclaredSignaturerecord componentgenericType- the value for thegenericTyperecord componentdiagnostics- the value for thediagnosticsrecord component
-
-
Method Details
-
usesErasedFallback
public boolean usesErasedFallback() -
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). -
erasedType
Returns the value of theerasedTyperecord component.- Returns:
- the value of the
erasedTyperecord component
-
declaredSignature
-
genericType
Returns the value of thegenericTyperecord component.- Returns:
- the value of the
genericTyperecord component
-
diagnostics
Returns the value of thediagnosticsrecord component.- Returns:
- the value of the
diagnosticsrecord component
-