Record Class LibraryInfo
java.lang.Object
java.lang.Record
net.minecraftforge.forgedev.legacy.values.LibraryInfo
- All Implemented Interfaces:
Serializable
public record LibraryInfo(String name, LibraryInfo.Downloads downloads)
extends Record
implements Serializable
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLibraryInfo(String name, String path, String url, String sha1, long size) LibraryInfo(String name, LibraryInfo.Downloads downloads) Creates an instance of aLibraryInforecord class.LibraryInfo(MavenInfo info, File file, String url) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedownloadsrecord component.final booleanIndicates whether some other object is "equal to" this one.static Map<String, LibraryInfo> from(Collection<MinimalResolvedArtifact> dependencies) static Map<String, LibraryInfo> from(Collection<MinimalResolvedArtifact> dependencies, boolean validateUrl) static org.gradle.api.provider.Provider<Map<String, LibraryInfo>> from(org.gradle.api.Project project, org.gradle.api.artifacts.Configuration configuration) static org.gradle.api.provider.Provider<Map<String, LibraryInfo>> from(org.gradle.api.Project project, org.gradle.api.tasks.TaskProvider<? extends org.gradle.api.tasks.bundling.AbstractArchiveTask>... tasks) final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.validateUrl(boolean offline)
-
Constructor Details
-
LibraryInfo
-
LibraryInfo
-
LibraryInfo
Creates an instance of aLibraryInforecord class.- Parameters:
name- the value for thenamerecord componentdownloads- the value for thedownloadsrecord component
-
-
Method Details
-
validateUrl
-
from
-
from
public static Map<String, LibraryInfo> from(Collection<MinimalResolvedArtifact> dependencies, boolean validateUrl) -
from
@SafeVarargs public static org.gradle.api.provider.Provider<Map<String, LibraryInfo>> from(org.gradle.api.Project project, org.gradle.api.tasks.TaskProvider<? extends org.gradle.api.tasks.bundling.AbstractArchiveTask>... tasks) -
from
public static org.gradle.api.provider.Provider<Map<String, LibraryInfo>> from(org.gradle.api.Project project, org.gradle.api.artifacts.Configuration configuration) -
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
downloads
Returns the value of thedownloadsrecord component.- Returns:
- the value of the
downloadsrecord component
-