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 isOnModCompileClasspath, String mavenScope)Creates an instance of aRemappedConfigurationEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates 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.booleanbooleanReturns the value of theisOnModCompileClasspathrecord component.Returns the value of themavenScoperecord 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 isOnModCompileClasspath, String mavenScope)Creates an instance of aRemappedConfigurationEntryrecord class.- Parameters:
sourceConfiguration- the value for thesourceConfigurationrecord componenttargetConfiguration- the value for thetargetConfigurationrecord componentisOnModCompileClasspath- the value for theisOnModCompileClasspathrecord componentmavenScope- the value for themavenScoperecord component
-
-
Method Details
-
hasMavenScope
public boolean hasMavenScope() -
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
-
isOnModCompileClasspath
public boolean isOnModCompileClasspath()Returns the value of theisOnModCompileClasspathrecord component.- Returns:
- the value of the
isOnModCompileClasspathrecord component
-
mavenScope
Returns the value of themavenScoperecord component.- Returns:
- the value of the
mavenScoperecord component
-