Package net.fabricmc.loom.configuration
Record Class RemapConfigurations.ConfigurationOption
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.RemapConfigurations.ConfigurationOption
- Enclosing class:
RemapConfigurations
@VisibleForTesting
public static record RemapConfigurations.ConfigurationOption(Function<org.gradle.api.tasks.SourceSet,String> targetNameFunc, boolean compileClasspath, boolean runtimeClasspath, RemapConfigurationSettings.PublishingMode publishingMode)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionConfigurationOption(Function<org.gradle.api.tasks.SourceSet, String> targetNameFunc, boolean compileClasspath, boolean runtimeClasspath, RemapConfigurationSettings.PublishingMode publishingMode) Creates an instance of aConfigurationOptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecompileClasspathrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name(org.gradle.api.tasks.SourceSet sourceSet) Returns the value of thepublishingModerecord component.booleanReturns the value of theruntimeClasspathrecord component.Returns the value of thetargetNameFuncrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConfigurationOption
public ConfigurationOption(Function<org.gradle.api.tasks.SourceSet, String> targetNameFunc, boolean compileClasspath, boolean runtimeClasspath, RemapConfigurationSettings.PublishingMode publishingMode) Creates an instance of aConfigurationOptionrecord class.- Parameters:
targetNameFunc- the value for thetargetNameFuncrecord componentcompileClasspath- the value for thecompileClasspathrecord componentruntimeClasspath- the value for theruntimeClasspathrecord componentpublishingMode- the value for thepublishingModerecord component
-
-
Method Details
-
name
-
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 '=='. -
targetNameFunc
Returns the value of thetargetNameFuncrecord component.- Returns:
- the value of the
targetNameFuncrecord 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
-