ifNotPresent

open fun ifNotPresent(runnable: Runnable)

Runs the runnable on the value of the reference if it is null.

Parameters

runnable

the runnable to run if the reference is null