Record Class ModFileScanData.ClassData
java.lang.Object
java.lang.Record
net.neoforged.neoforgespi.language.ModFileScanData.ClassData
- Enclosing class:
ModFileScanData
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclazz()Returns the value of theclazzrecord 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 theinterfacesrecord component.parent()Returns the value of theparentrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
clazz
The field for theclazzrecord component. -
parent
The field for theparentrecord component. -
interfaces
The field for theinterfacesrecord component.
-
-
Constructor Details
-
ClassData
Creates an instance of aClassDatarecord class.- Parameters:
clazz- the value for theclazzrecord componentparent- the value for theparentrecord componentinterfaces- the value for theinterfacesrecord 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). -
clazz
Returns the value of theclazzrecord component.- Returns:
- the value of the
clazzrecord component
-
parent
Returns the value of theparentrecord component.- Returns:
- the value of the
parentrecord component
-
interfaces
Returns the value of theinterfacesrecord component.- Returns:
- the value of the
interfacesrecord component
-