OsImpl

class OsImpl(parsedOs: Os) : Os

Implements the Os interface, providing the operating system name and version information.

This class extracts the operating system's name and version from the provided com.tecknobit.kinfo.model.Os object, ensuring null-safe values are used via the safeValue() method from the WebInfoItem interface.

Author

N7ghtm4r3

Parameters

parsedOs

The Os object containing the parsed operating system information, used to extract the name and version.

See also

Constructors

Link copied to clipboard
constructor(parsedOs: Os)

Properties

Link copied to clipboard
open override val name: String

name The name of the operating system (e.g., Windows, Linux, macOS). This value is safely extracted from the provided parsedOs object.

Link copied to clipboard
open override val version: String

version The version of the operating system. This value is safely extracted from the provided parsedOs object.

Functions

Link copied to clipboard
open fun String?.safeValue(): String

Method to use a null-safe value.