EngineImpl

class EngineImpl(parsedEngine: Engine) : Engine

Implements the Engine interface, providing the engine name and version information.

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

Author

N7ghtm4r3

Parameters

parsedEngine

The Engine object containing the parsed engine information, used to extract the name and version.

See also

Constructors

Link copied to clipboard
constructor(parsedEngine: Engine)

Properties

Link copied to clipboard
open override val name: String

name The name of the engine (e.g., Blink, WebKit). This value is safely extracted from the provided parsedEngine object.

Link copied to clipboard
open override val version: String

version The version of the engine. This value is safely extracted from the provided parsedEngine object.

Functions

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

Method to use a null-safe value.