toggle menu
BunyipsLib
v4.1.0-master-b97a0460
BunyipsLib
switch theme
search in API
BunyipsLib
/
org.murraybridgebunyips.bunyipslib
/
Reference
/
ifPresent
if
Present
open
fun
ifPresent
(
consumer
:
Consumer
<
V
>
)
Runs the consumer on the value of the reference if it is not null.
Parameters
consumer
the consumer to run