Module org.glavo.classfile
Package org.glavo.classfile.impl
Record Class ClassHierarchyImpl.ClassHierarchyInfoImpl
java.lang.Object
java.lang.Record
org.glavo.classfile.impl.ClassHierarchyImpl.ClassHierarchyInfoImpl
- All Implemented Interfaces:
ClassHierarchyResolver.ClassHierarchyInfo
- Enclosing class:
ClassHierarchyImpl
public static record ClassHierarchyImpl.ClassHierarchyInfoImpl(ClassDesc superClass, boolean isInterface)
extends Record
implements ClassHierarchyResolver.ClassHierarchyInfo
-
Constructor Summary
ConstructorsConstructorDescriptionClassHierarchyInfoImpl(ClassDesc superClass, boolean isInterface) Creates an instance of aClassHierarchyInfoImplrecord 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.booleanReturns the value of theisInterfacerecord component.Returns the value of thesuperClassrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClassHierarchyInfoImpl
Creates an instance of aClassHierarchyInfoImplrecord class.- Parameters:
superClass- the value for thesuperClassrecord componentisInterface- the value for theisInterfacerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
superClass
Returns the value of thesuperClassrecord component.- Returns:
- the value of the
superClassrecord component
-
isInterface
public boolean isInterface()Returns the value of theisInterfacerecord component.- Returns:
- the value of the
isInterfacerecord component
-