Record Class MavenInfo
java.lang.Object
java.lang.Record
net.minecraftforge.forgedev.legacy.values.MavenInfo
- All Implemented Interfaces:
Serializable,Comparable<MavenInfo>
public record MavenInfo(String key, String name, String path, MavenInfo.ArtifactInfo art)
extends Record
implements Serializable, Comparable<MavenInfo>
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMavenInfo(String key, String name, String path, MavenInfo.ArtifactInfo art) Creates an instance of aMavenInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionart()Returns the value of theartrecord component.intfinal booleanIndicates whether some other object is "equal to" this one.static MavenInfofrom(String artGroup, String artName, String artVersion, @Nullable String artClassifier, @Nullable String artExtension) static MavenInfofrom(org.gradle.api.artifacts.ProjectDependency project) static MavenInfofrom(org.gradle.api.Project project) static MavenInfostatic MavenInfofrom(org.gradle.api.Project project, org.gradle.api.artifacts.result.ResolvedArtifactResult dependency) static org.gradle.api.provider.Provider<MavenInfo> 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.key()Returns the value of thekeyrecord component.name()Returns the value of thenamerecord component.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MavenInfo
Creates an instance of aMavenInforecord class.- Parameters:
key- the value for thekeyrecord componentname- the value for thenamerecord componentpath- the value for thepathrecord componentart- the value for theartrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<MavenInfo>
-
from
-
from
public static MavenInfo from(org.gradle.api.Project project, org.gradle.api.artifacts.result.ResolvedArtifactResult dependency) -
from
-
from
-
from
-
from
public static org.gradle.api.provider.Provider<MavenInfo> from(org.gradle.api.Project project, org.gradle.api.tasks.TaskProvider<? extends org.gradle.api.tasks.bundling.AbstractArchiveTask> task) -
toString
-
hashCode
-
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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
art
Returns the value of theartrecord component.- Returns:
- the value of the
artrecord component
-