Record Class CopiedDependency
java.lang.Object
java.lang.Record
org.ek9lang.core.CopiedDependency
public record CopiedDependency(String vector, String moduleName, String version, boolean devOnly, Optional<String> zipSha256, List<CopiedFile> files)
extends Record
One accepted dependency as copied into a project (
.ek9/deps/<vector>/, D-M2): the vector it was resolved
from (<module>-<version>), its module and version, whether it is compiled only in a dev build (reached only
through the project's own devDeps), the SHA-256 of the library zip it was unpacked from (empty when it was
installed unpacked only), and every file of the copy, sorted by path. Exactly what ek9.lock records for it
(docs/implementation/EK9_P2_P3_PLAN.md §1.3, §2.1). Frozen for the P2/P3 lanes.-
Constructor Summary
ConstructorsConstructorDescriptionCopiedDependency(String vector, String moduleName, String version, boolean devOnly, Optional<String> zipSha256, List<CopiedFile> files) Creates an instance of aCopiedDependencyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleandevOnly()Returns the value of thedevOnlyrecord component.final booleanIndicates whether some other object is "equal to" this one.files()Returns the value of thefilesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themoduleNamerecord component.final StringtoString()Returns a string representation of this record class.vector()Returns the value of thevectorrecord component.version()Returns the value of theversionrecord component.Returns the value of thezipSha256record component.
-
Constructor Details
-
CopiedDependency
public CopiedDependency(String vector, String moduleName, String version, boolean devOnly, Optional<String> zipSha256, List<CopiedFile> files) Creates an instance of aCopiedDependencyrecord class.- Parameters:
vector- the value for thevectorrecord componentmoduleName- the value for themoduleNamerecord componentversion- the value for theversionrecord componentdevOnly- the value for thedevOnlyrecord componentzipSha256- the value for thezipSha256record componentfiles- the value for thefilesrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
vector
Returns the value of thevectorrecord component.- Returns:
- the value of the
vectorrecord component
-
moduleName
Returns the value of themoduleNamerecord component.- Returns:
- the value of the
moduleNamerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
devOnly
public boolean devOnly()Returns the value of thedevOnlyrecord component.- Returns:
- the value of the
devOnlyrecord component
-
zipSha256
-
files
Returns the value of thefilesrecord component.- Returns:
- the value of the
filesrecord component
-