getOrNull

open override 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

open fun getOrNull(item: Item<*>, errorWhenNotFound: Boolean, errorWhenGetDefault: Boolean = false, lazyContext: ItemContainer = this): Any?
open override 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