if_present


Description:

public void if_present (Func<G> consumer)

If a value is present, performs the given consumer function with the value.

Parameters:

consumer

a function that will be executed if a value is present