Record Class JarStructure.ClassEntry
java.lang.Object
java.lang.Record
com.cleanroommc.gradle.api.names.JarStructure.ClassEntry
- Enclosing class:
JarStructure
public static record JarStructure.ClassEntry(String internalName, List<JarStructure.Member> methods, List<JarStructure.Member> fields)
extends Record
One class's SRG-named members.
-
Constructor Summary
ConstructorsConstructorDescriptionClassEntry(String internalName, List<JarStructure.Member> methods, List<JarStructure.Member> fields) Creates an instance of aClassEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fields()Returns the value of thefieldsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinternalNamerecord component.methods()Returns the value of themethodsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClassEntry
public ClassEntry(String internalName, List<JarStructure.Member> methods, List<JarStructure.Member> fields) Creates an instance of aClassEntryrecord class.- Parameters:
internalName- the value for theinternalNamerecord componentmethods- the value for themethodsrecord componentfields- the value for thefieldsrecord 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). -
internalName
Returns the value of theinternalNamerecord component.- Returns:
- the value of the
internalNamerecord component
-
methods
Returns the value of themethodsrecord component.- Returns:
- the value of the
methodsrecord component
-
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-