data class FileIdentifier: FileIdentifierInterface, Any

Identifier of a file with hash checksum to verify data integrity.

Fields

Name Description
val fileName: String

actual name of the file

val fileExtension: String

extension of the file

val filePath: Path

path to the file

val fileHashSha256: String

hash of the file

Constructors

<init>

constructor(fileName: String, fileExtension: String, filePath: Path, fileHashSha256: String)

Identifier of a file with hash checksum to verify data integrity.

Parameters

Name Description
fileName: String

actual name of the file

fileExtension: String

extension of the file

filePath: Path

path to the file

fileHashSha256: String

hash of the file

CompanionObject

FileIdentifier

data class FileIdentifier: FileIdentifierInterface, Any

Identifier of a file with hash checksum to verify data integrity.

Methods

of

fun of(path: Path): FileIdentifier

Parameters

Name Description
path: Path

ReturnValue

Name Description
FileIdentifier

of

fun of(file: File): FileIdentifier

Parameters

Name Description
file: File

ReturnValue

Name Description
FileIdentifier