Package net.fabricmc.loom.util
Record Class SourceRemapper.RemapData
java.lang.Object
java.lang.Record
net.fabricmc.loom.util.SourceRemapper.RemapData
- Enclosing class:
- SourceRemapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedestinationrecord component.net.fabricmc.stitch.util.StitchUtil.FileSystemDelegatedstFs()Returns the value of thedstFsrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.booleanisSrcTmp()Returns the value of theisSrcTmprecord component.source()Returns the value of thesourcerecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
RemapData
public RemapData(Path source, Path destination, net.fabricmc.stitch.util.StitchUtil.FileSystemDelegate dstFs, boolean isSrcTmp)Creates an instance of aRemapDatarecord class.- Parameters:
source- the value for thesourcerecord componentdestination- the value for thedestinationrecord componentdstFs- the value for thedstFsrecord componentisSrcTmp- the value for theisSrcTmprecord 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
-
dstFs
public net.fabricmc.stitch.util.StitchUtil.FileSystemDelegate dstFs()Returns the value of thedstFsrecord component.- Returns:
- the value of the
dstFsrecord component
-
isSrcTmp
public boolean isSrcTmp()Returns the value of theisSrcTmprecord component.- Returns:
- the value of the
isSrcTmprecord component
-