Record Class MinecraftJarMerger.Entry
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.providers.minecraft.MinecraftJarMerger.Entry
- Enclosing class:
MinecraftJarMerger
public static record MinecraftJarMerger.Entry(Path path, BasicFileAttributes metadata, @Nullable Supplier<byte[]> dataSupplier)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEntry(Path path, BasicFileAttributes metadata) Entry(Path path, BasicFileAttributes metadata, byte @Nullable [] data) Entry(Path path, BasicFileAttributes metadata, @Nullable Supplier<byte[]> dataSupplier) Creates an instance of aEntryrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Supplier<byte[]> Returns the value of thedataSupplierrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Entry
-
Entry
-
Entry
Creates an instance of aEntryrecord class.- Parameters:
path- the value for thepathrecord componentmetadata- the value for themetadatarecord componentdataSupplier- the value for thedataSupplierrecord 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
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-
dataSupplier
Returns the value of thedataSupplierrecord component.- Returns:
- the value of the
dataSupplierrecord component
-