Package net.fabricmc.loom.configuration
Record Class RemappedConfigurationEntry
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.RemappedConfigurationEntry
public record RemappedConfigurationEntry(String sourceConfiguration, String targetConfiguration, boolean compileClasspath, boolean runtimeClasspath, RemappedConfigurationEntry.PublishingMode publishingMode, @Nullable String replacedWith)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRemappedConfigurationEntry(String sourceConfiguration, String targetConfiguration, boolean compileClasspath, boolean runtimeClasspath, RemappedConfigurationEntry.PublishingMode publishingMode)RemappedConfigurationEntry(String sourceConfiguration, String targetConfiguration, boolean compileClasspath, boolean runtimeClasspath, RemappedConfigurationEntry.PublishingMode publishingMode, @Nullable String replacedWith)Creates an instance of aRemappedConfigurationEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecompileClasspathrecord component.booleanIndicates whether some other object is "equal to" this one.getTargetConfiguration(org.gradle.api.artifacts.ConfigurationContainer container)inthashCode()Returns a hash code value for this object.Returns the value of thepublishingModerecord component.@Nullable StringReturns the value of thereplacedWithrecord component.booleanReturns the value of theruntimeClasspathrecord component.Returns the value of thesourceConfigurationrecord component.Returns the value of thetargetConfigurationrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
RemappedConfigurationEntry
public RemappedConfigurationEntry(String sourceConfiguration, String targetConfiguration, boolean compileClasspath, boolean runtimeClasspath, RemappedConfigurationEntry.PublishingMode publishingMode) -
RemappedConfigurationEntry
public RemappedConfigurationEntry(String sourceConfiguration, String targetConfiguration, boolean compileClasspath, boolean runtimeClasspath, RemappedConfigurationEntry.PublishingMode publishingMode, @Nullable @Nullable String replacedWith)Creates an instance of aRemappedConfigurationEntryrecord class.- Parameters:
sourceConfiguration- the value for thesourceConfigurationrecord componenttargetConfiguration- the value for thetargetConfigurationrecord componentcompileClasspath- the value for thecompileClasspathrecord componentruntimeClasspath- the value for theruntimeClasspathrecord componentpublishingMode- the value for thepublishingModerecord componentreplacedWith- the value for thereplacedWithrecord component
-
-
Method Details
-
getRemappedConfiguration
-
getTargetConfiguration
-
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 '=='. -
sourceConfiguration
Returns the value of thesourceConfigurationrecord component.- Returns:
- the value of the
sourceConfigurationrecord component
-
targetConfiguration
Returns the value of thetargetConfigurationrecord component.- Returns:
- the value of the
targetConfigurationrecord component
-
compileClasspath
public boolean compileClasspath()Returns the value of thecompileClasspathrecord component.- Returns:
- the value of the
compileClasspathrecord component
-
runtimeClasspath
public boolean runtimeClasspath()Returns the value of theruntimeClasspathrecord component.- Returns:
- the value of the
runtimeClasspathrecord component
-
publishingMode
Returns the value of thepublishingModerecord component.- Returns:
- the value of the
publishingModerecord component
-
replacedWith
Returns the value of thereplacedWithrecord component.- Returns:
- the value of the
replacedWithrecord component
-