Nullable.ifPresent

If a value is present, performs the given action with the value, otherwise does nothing.

@param action the action to be performed, if a value is present @throws NullPointerException if value is present and the given action is {@code null}

class Nullable(T)
void
ifPresent
(
Consumer!T action
)

Meta