Package io.inugami.api.functionnals
Interface ApplyIfNotNull
-
public interface ApplyIfNotNullMost facet than interface, The ApplyIfNotNull interface allow to prevent NullPopinterException.- Since:
- 15 janv. 2018
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default <T> voidapplyIfNotNull(T data, Consumer<T> consumer)default <T> voidapplyIfNotNull(T data, T defaultValue, Consumer<T> consumer)
-