Record Class ModDependencyInfo.AccessWidenerData
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.processors.dependency.ModDependencyInfo.AccessWidenerData
- Enclosing class:
- ModDependencyInfo
-
Constructor Summary
ConstructorsConstructorDescriptionAccessWidenerData(String path, net.fabricmc.accesswidener.AccessWidenerReader.Header header, byte[] content)Creates an instance of aAccessWidenerDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]content()Returns the value of thecontentrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.net.fabricmc.accesswidener.AccessWidenerReader.Headerheader()Returns the value of theheaderrecord component.path()Returns the value of thepathrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
AccessWidenerData
public AccessWidenerData(String path, net.fabricmc.accesswidener.AccessWidenerReader.Header header, byte[] content)Creates an instance of aAccessWidenerDatarecord class.- Parameters:
path- the value for thepathrecord componentheader- the value for theheaderrecord componentcontent- the value for thecontentrecord 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). -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
header
public net.fabricmc.accesswidener.AccessWidenerReader.Header header()Returns the value of theheaderrecord component.- Returns:
- the value of the
headerrecord component
-
content
public byte[] content()Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-