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

    Constructors
    Constructor
    Description
    Creates an instance of a MinimalResolvedArtifact record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the file record component.
    static org.gradle.api.provider.Provider<List<MinimalResolvedArtifact>>
    from(org.gradle.api.Project project, org.gradle.api.artifacts.Configuration configuration)
     
    from(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 int
    Returns a hash code value for this object.
    Returns the value of the info record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MinimalResolvedArtifact

      public MinimalResolvedArtifact(MavenInfo info, File file)
      Creates an instance of a MinimalResolvedArtifact record class.
      Parameters:
      info - the value for the info record component
      file - the value for the file record component
  • 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

      public boolean equals(Object obj)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      obj - the object with which to compare
      Returns:
      true if this object is the same as the obj argument; false otherwise.
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • info

      public MavenInfo info()
      Returns the value of the info record component.
      Returns:
      the value of the info record component
    • file

      public File file()
      Returns the value of the file record component.
      Returns:
      the value of the file record component