Package net.fabricmc.loom.configuration
Record Class RemappedConfigurationEntry
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.RemappedConfigurationEntry
-
Constructor Summary
ConstructorsConstructorDescriptionRemappedConfigurationEntry(String sourceConfiguration, String targetConfiguration, boolean compileClasspath, boolean runtimeClasspath, String consumerConfiguration)RemappedConfigurationEntry(String sourceConfiguration, String targetConfiguration, boolean compileClasspath, boolean runtimeClasspath, String consumerConfiguration, @Nullable String replacedWith)Creates an instance of aRemappedConfigurationEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecompileClasspathrecord component.Returns the value of theconsumerConfigurationrecord component.booleanIndicates whether some other object is "equal to" this one.getTargetConfiguration(org.gradle.api.artifacts.ConfigurationContainer container)booleaninthashCode()Returns a hash code value for this object.@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
-
RemappedConfigurationEntry
public RemappedConfigurationEntry(String sourceConfiguration, String targetConfiguration, boolean compileClasspath, boolean runtimeClasspath, String consumerConfiguration, @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 componentconsumerConfiguration- the value for theconsumerConfigurationrecord componentreplacedWith- the value for thereplacedWithrecord component
-
-
Method Details
-
hasConsumerConfiguration
public boolean hasConsumerConfiguration() -
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
-
consumerConfiguration
Returns the value of theconsumerConfigurationrecord component.- Returns:
- the value of the
consumerConfigurationrecord component
-
replacedWith
Returns the value of thereplacedWithrecord component.- Returns:
- the value of the
replacedWithrecord component
-