Package net.fabricmc.loom.util
Record Class SourceRemapper.RemapTask
java.lang.Object
java.lang.Record
net.fabricmc.loom.util.SourceRemapper.RemapTask
- Enclosing class:
- SourceRemapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedestinationrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.booleanReturns the value of thepreserveFileTimestampsrecord component.booleanReturns the value of thereproducibleFileOrderrecord component.source()Returns the value of thesourcerecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
RemapTask
public RemapTask(File source, File destination, boolean reproducibleFileOrder, boolean preserveFileTimestamps)Creates an instance of aRemapTaskrecord class.- Parameters:
source- the value for thesourcerecord componentdestination- the value for thedestinationrecord componentreproducibleFileOrder- the value for thereproducibleFileOrderrecord componentpreserveFileTimestamps- the value for thepreserveFileTimestampsrecord 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 '=='. -
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
destination
Returns the value of thedestinationrecord component.- Returns:
- the value of the
destinationrecord component
-
reproducibleFileOrder
public boolean reproducibleFileOrder()Returns the value of thereproducibleFileOrderrecord component.- Returns:
- the value of the
reproducibleFileOrderrecord component
-
preserveFileTimestamps
public boolean preserveFileTimestamps()Returns the value of thepreserveFileTimestampsrecord component.- Returns:
- the value of the
preserveFileTimestampsrecord component
-