or System Property
open fun <T : Any> GLazy<T>.orSystemProperty(key: String, converter: (String) -> T): GLazy<T>
Content copied to clipboard
Registers a new GLazy fallback that will look up a system property if base value is missing.
Receiver
GLazy providing base value
Return
chained GLazy that falls back to system property lookup
Parameters
key
to look up system property by
converter
to apply when converting retrieved system property value to expected type
open infix fun GLazy<String>.orSystemProperty(key: String): GLazy<String>
Content copied to clipboard
Registers a new GLazy fallback that will look up a system property if base value is missing.
Receiver
GLazy providing base value
Return
chained GLazy that falls back to system property lookup
Parameters
key
to look up system property by