KernelParameter

interface KernelParameter<T>

Interface for handling the parsing and serialization of a specific kernel parameter type.

Parameters

T

The type of value that this parameter represents

Inheritors

Functions

Link copied to clipboard
abstract fun serialize(value: T): String?

Serializes a value of type T to a string representation for command-line usage.

Link copied to clipboard
abstract fun tryParse(arg: String, previousValue: T?): T?

Attempts to parse a command-line argument into a value of type T.