Package net.fabricmc.loom.util.gradle
Record Class SourceSetReference
java.lang.Object
java.lang.Record
net.fabricmc.loom.util.gradle.SourceSetReference
public record SourceSetReference(org.gradle.api.tasks.SourceSet sourceSet, org.gradle.api.Project project)
extends Record
A reference to a
SourceSet from a Project.-
Constructor Summary
ConstructorsConstructorDescriptionSourceSetReference(org.gradle.api.tasks.SourceSet sourceSet, org.gradle.api.Project project) Creates an instance of aSourceSetReferencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.gradle.api.Projectproject()Returns the value of theprojectrecord component.org.gradle.api.tasks.SourceSetReturns the value of thesourceSetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SourceSetReference
public SourceSetReference(org.gradle.api.tasks.SourceSet sourceSet, org.gradle.api.Project project) Creates an instance of aSourceSetReferencerecord class.- Parameters:
sourceSet- the value for thesourceSetrecord componentproject- the value for theprojectrecord 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). -
sourceSet
public org.gradle.api.tasks.SourceSet sourceSet()Returns the value of thesourceSetrecord component.- Returns:
- the value of the
sourceSetrecord component
-
project
public org.gradle.api.Project project()Returns the value of theprojectrecord component.- Returns:
- the value of the
projectrecord component
-