Record Class ExternalClasspathGroupDTO
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.classpathgroups.ExternalClasspathGroupDTO
- All Implemented Interfaces:
Serializable
public record ExternalClasspathGroupDTO(String projectPath, Map<String,List<String>> classpaths)
extends Record
implements Serializable
This object is exported by projects as a json file to be consumed by others to correctly populate the classpath groups.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclasspathsrecord component.static ExternalClasspathGroupDTOcreateFromProject(org.gradle.api.Project project) final booleanIndicates whether some other object is "equal to" this one.getForSourceSet(String sourceSetName) final inthashCode()Returns a hash code value for this object.Returns the value of theprojectPathrecord component.static Map<String, ExternalClasspathGroupDTO> resolveExternal(Set<File> files) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExternalClasspathGroupDTO
Creates an instance of aExternalClasspathGroupDTOrecord class.- Parameters:
projectPath- the value for theprojectPathrecord componentclasspaths- the value for theclasspathsrecord component
-
-
Method Details
-
createFromProject
-
resolveExternal
-
getForSourceSet
-
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). -
projectPath
Returns the value of theprojectPathrecord component.- Returns:
- the value of the
projectPathrecord component
-
classpaths
Returns the value of theclasspathsrecord component.- Returns:
- the value of the
classpathsrecord component
-