Package io.inugami.api.functionnals
Interface ApplyIfNull
-
public interface ApplyIfNullSame as ApplyIfNotNull but it will invoke the supplier only if the data is null.- Since:
- Jan 14, 2019
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default <T> TapplyIfNull(T data, Supplier<T> supplier)
-
-
-
Method Detail
-
applyIfNull
default <T> T applyIfNull(T data, Supplier<T> supplier)
-
-