getOrNull

abstract fun <T> getOrNull(item: Item<T>): T?

Returns associated value if specified item exists, null otherwise.

Return

associated value if specified item exists, null otherwise

Parameters

item

config item

abstract fun <T> getOrNull(name: String): T?

Returns associated value if specified item name exists, null otherwise.

Return

associated value if specified item name exists, null otherwise

Parameters

name

item name