Record Class CopiedFile
java.lang.Object
java.lang.Record
org.ek9lang.core.CopiedFile
One file of a dependency's copy in a project (
.ek9/deps/<vector>/): its path relative to the copy's folder,
/-separated on every platform, and the SHA-256 (lower-case hex) of its bytes - what ek9.lock records
for it (docs/implementation/EK9_P2_P3_PLAN.md §1.2, §2.1). Frozen for the P2/P3 lanes.-
Constructor Summary
ConstructorsConstructorDescriptionCopiedFile(String relativePath, String sha256) Creates an instance of aCopiedFilerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therelativePathrecord component.sha256()Returns the value of thesha256record component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CopiedFile
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
relativePath
Returns the value of therelativePathrecord component.- Returns:
- the value of the
relativePathrecord component
-
sha256
Returns the value of thesha256record component.- Returns:
- the value of the
sha256record component
-