Record Class JSignature.VarTypeDeclaration
java.lang.Object
java.lang.Record
honeyroasted.jype.metadata.signature.JSignature.VarTypeDeclaration
- All Implemented Interfaces:
JSignature,JSignature.Declaration
- Enclosing interface:
JSignature
public static record JSignature.VarTypeDeclaration(String name, JSignature.InformalType classBound, List<JSignature.InformalType> interfaceBounds)
extends Record
implements JSignature.Declaration
-
Nested Class Summary
Nested classes/interfaces inherited from interface honeyroasted.jype.metadata.signature.JSignature
JSignature.Array, JSignature.ClassDeclaration, JSignature.Declaration, JSignature.Declared, JSignature.GenericDeclaration, JSignature.InformalType, JSignature.IntersectionType, JSignature.MethodDeclaration, JSignature.Parameterized, JSignature.Type, JSignature.VarType, JSignature.VarTypeDeclaration, JSignature.WildType -
Constructor Summary
ConstructorsConstructorDescriptionVarTypeDeclaration(String name, JSignature.InformalType classBound, List<JSignature.InformalType> interfaceBounds) Creates an instance of aVarTypeDeclarationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassBoundrecord 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 theinterfaceBoundsrecord component.name()Returns the value of thenamerecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
VarTypeDeclaration
public VarTypeDeclaration(String name, JSignature.InformalType classBound, List<JSignature.InformalType> interfaceBounds) Creates an instance of aVarTypeDeclarationrecord class.- Parameters:
name- the value for thenamerecord componentclassBound- the value for theclassBoundrecord componentinterfaceBounds- the value for theinterfaceBoundsrecord 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
classBound
Returns the value of theclassBoundrecord component.- Returns:
- the value of the
classBoundrecord component
-
interfaceBounds
Returns the value of theinterfaceBoundsrecord component.- Returns:
- the value of the
interfaceBoundsrecord component
-