Record Class MinimalResolvedArtifact
java.lang.Object
java.lang.Record
net.minecraftforge.forgedev.legacy.values.MinimalResolvedArtifact
- All Implemented Interfaces:
Serializable
public record MinimalResolvedArtifact(MavenInfo info, File file)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMinimalResolvedArtifact(MavenInfo info, File file) Creates an instance of aMinimalResolvedArtifactrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.static org.gradle.api.provider.Provider<List<MinimalResolvedArtifact>> from(org.gradle.api.Project project, org.gradle.api.artifacts.Configuration configuration) static MinimalResolvedArtifactfrom(org.gradle.api.Project project, org.gradle.api.artifacts.result.ResolvedArtifactResult artifact) static org.gradle.api.provider.Provider<MinimalResolvedArtifact> from(org.gradle.api.Project project, org.gradle.api.tasks.TaskProvider<? extends org.gradle.api.tasks.bundling.AbstractArchiveTask> task) final inthashCode()Returns a hash code value for this object.info()Returns the value of theinforecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MinimalResolvedArtifact
-
-
Method Details
-
from
public static org.gradle.api.provider.Provider<MinimalResolvedArtifact> from(org.gradle.api.Project project, org.gradle.api.tasks.TaskProvider<? extends org.gradle.api.tasks.bundling.AbstractArchiveTask> task) -
from
public static MinimalResolvedArtifact from(org.gradle.api.Project project, org.gradle.api.artifacts.result.ResolvedArtifactResult artifact) -
from
public static org.gradle.api.provider.Provider<List<MinimalResolvedArtifact>> from(org.gradle.api.Project project, org.gradle.api.artifacts.Configuration configuration) -
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). -
toString
-
hashCode
-
info
Returns the value of theinforecord component.- Returns:
- the value of the
inforecord component
-
file
Returns the value of thefilerecord component.- Returns:
- the value of the
filerecord component
-