ifPresent abstract method

void ifPresent(
  1. Callback1<T> function
)

Evaluates the callback function with the present value, otherwise does nothing.

Implementation

void ifPresent(Callback1<T> function);