Module org.glavo.classfile
Package org.glavo.classfile.impl
Record Class SignaturesImpl.TypeParamImpl
java.lang.Object
java.lang.Record
org.glavo.classfile.impl.SignaturesImpl.TypeParamImpl
- All Implemented Interfaces:
Signature.TypeParam
- Enclosing class:
SignaturesImpl
public static record SignaturesImpl.TypeParamImpl(String identifier, Optional<Signature.RefTypeSig> classBound, List<Signature.RefTypeSig> interfaceBounds)
extends Record
implements Signature.TypeParam
-
Constructor Summary
ConstructorsConstructorDescriptionTypeParamImpl(String identifier, Optional<Signature.RefTypeSig> classBound, List<Signature.RefTypeSig> interfaceBounds) Creates an instance of aTypeParamImplrecord 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 theidentifierrecord component.Returns the value of theinterfaceBoundsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TypeParamImpl
public TypeParamImpl(String identifier, Optional<Signature.RefTypeSig> classBound, List<Signature.RefTypeSig> interfaceBounds) Creates an instance of aTypeParamImplrecord class.- Parameters:
identifier- the value for theidentifierrecord componentclassBound- the value for theclassBoundrecord componentinterfaceBounds- the value for theinterfaceBoundsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
identifier
Returns the value of theidentifierrecord component.- Specified by:
identifierin interfaceSignature.TypeParam- Returns:
- the value of the
identifierrecord component
-
classBound
Returns the value of theclassBoundrecord component.- Specified by:
classBoundin interfaceSignature.TypeParam- Returns:
- the value of the
classBoundrecord component
-
interfaceBounds
Returns the value of theinterfaceBoundsrecord component.- Specified by:
interfaceBoundsin interfaceSignature.TypeParam- Returns:
- the value of the
interfaceBoundsrecord component
-