Package io.github.slimjar.resolver.data
Record Class DependencyData
java.lang.Object
java.lang.Record
io.github.slimjar.resolver.data.DependencyData
public record DependencyData(@NotNull Collection<Mirror> mirrors, @NotNull Collection<Repository> repositories, @NotNull Collection<Dependency> dependencies, @NotNull Collection<RelocationRule> relocations)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDependencyData(@NotNull Collection<Mirror> mirrors, @NotNull Collection<Repository> repositories, @NotNull Collection<Dependency> dependencies, @NotNull Collection<RelocationRule> relocations) Creates an instance of aDependencyDatarecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Collection<Dependency>Returns the value of thedependenciesrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.@NotNull Collection<Mirror>mirrors()Returns the value of themirrorsrecord component.static @NotNull DependencyData@NotNull Collection<RelocationRule>Returns the value of therelocationsrecord component.@NotNull Collection<Repository>Returns the value of therepositoriesrecord component.@NotNull StringtoString()Returns a string representation of this record class.voidwrite(@NotNull DataOutput out)
-
Constructor Details
-
DependencyData
@Contract(pure=true) public DependencyData(@NotNull @NotNull Collection<Mirror> mirrors, @NotNull @NotNull Collection<Repository> repositories, @NotNull @NotNull Collection<Dependency> dependencies, @NotNull @NotNull Collection<RelocationRule> relocations) Creates an instance of aDependencyDatarecord class.- Parameters:
mirrors- the value for themirrorsrecord componentrepositories- the value for therepositoriesrecord componentdependencies- the value for thedependenciesrecord componentrelocations- the value for therelocationsrecord component
-
-
Method Details
-
read
@NotNull @Contract(pure=true) public static @NotNull DependencyData read(@NotNull @NotNull DataInput in) throws IOException - Throws:
IOException
-
write
- Throws:
IOException
-
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). -
hashCode
@Contract(pure=true) public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
mirrors
Returns the value of themirrorsrecord component.- Returns:
- the value of the
mirrorsrecord component
-
repositories
Returns the value of therepositoriesrecord component.- Returns:
- the value of the
repositoriesrecord component
-
dependencies
Returns the value of thedependenciesrecord component.- Returns:
- the value of the
dependenciesrecord component
-
relocations
Returns the value of therelocationsrecord component.- Returns:
- the value of the
relocationsrecord component
-