clikt / com.github.ajalt.clikt.parameters.options / ValueWithDefault

ValueWithDefault

data class ValueWithDefault

A container for a value that can have a default value and can be manually set

Constructors

Name Summary
<init> A container for a value that can have a default value and can be manually setValueWithDefault(explicit: T?, default: T)

Properties

Name Summary
default val default: T
explicit val explicit: T?
value val value: T

Extension Functions

Name Summary
withDefault Create a copy with a new default valuefun <T>ValueWithDefault<T>.withDefault(default: T):ValueWithDefault<T>
withExplicit Create a copy with a new explicit valuefun <T>ValueWithDefault<T>.withExplicit(explicit: T):ValueWithDefault<T>