Lines

data class Lines(val lines: Int) : FileSize(source)

Represents a file's size as line count.

Constructors

Link copied to clipboard
constructor(lines: Int)

Properties

Link copied to clipboard
val lines: Int

the number of lines (non-negative)

Functions

Link copied to clipboard
open override fun display(): String

Returns the line count as "1 line" when the value is one or "N lines" otherwise