Package net.fabricmc.loom.configuration
Record Class ConfigContextImpl
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.ConfigContextImpl
- All Implemented Interfaces:
ConfigContext
public record ConfigContextImpl(org.gradle.api.Project project, ServiceFactory serviceFactory, LoomGradleExtension extension)
extends Record
implements ConfigContext
-
Constructor Summary
ConstructorsConstructorDescriptionConfigContextImpl(org.gradle.api.Project project, ServiceFactory serviceFactory, LoomGradleExtension extension) Creates an instance of aConfigContextImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theextensionrecord component.final inthashCode()Returns a hash code value for this object.org.gradle.api.Projectproject()Returns the value of theprojectrecord component.Returns the value of theserviceFactoryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConfigContextImpl
public ConfigContextImpl(org.gradle.api.Project project, ServiceFactory serviceFactory, LoomGradleExtension extension) Creates an instance of aConfigContextImplrecord class.- Parameters:
project- the value for theprojectrecord componentserviceFactory- the value for theserviceFactoryrecord componentextension- the value for theextensionrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
project
public org.gradle.api.Project project()Returns the value of theprojectrecord component.- Specified by:
projectin interfaceConfigContext- Returns:
- the value of the
projectrecord component
-
serviceFactory
Returns the value of theserviceFactoryrecord component.- Specified by:
serviceFactoryin interfaceConfigContext- Returns:
- the value of the
serviceFactoryrecord component
-
extension
Returns the value of theextensionrecord component.- Specified by:
extensionin interfaceConfigContext- Returns:
- the value of the
extensionrecord component
-