Record Class JSignature.Declared
java.lang.Object
java.lang.Record
honeyroasted.jype.metadata.signature.JSignature.Declared
- Enclosing interface:
JSignature
public static record JSignature.Declared(JSignature.InformalType signature, JGenericDeclaration containing)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDeclared(JSignature.InformalType signature, JGenericDeclaration containing) Creates an instance of aDeclaredrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontainingrecord 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 thesignaturerecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Declared
Creates an instance of aDeclaredrecord class.- Parameters:
signature- the value for thesignaturerecord componentcontaining- the value for thecontainingrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
signature
Returns the value of thesignaturerecord component.- Returns:
- the value of the
signaturerecord component
-
containing
Returns the value of thecontainingrecord component.- Returns:
- the value of the
containingrecord component
-