Interface ApplyIfNotNullAndSameType


  • public interface ApplyIfNotNullAndSameType
    Same as ApplyIfNotNull but it will check also the data type.
    Since:
    15 janv. 2018
    See Also:
    ApplyIfNotNull
    • Method Detail

      • ifNotNullAndSameType

        default <T,​R> void ifNotNullAndSameType​(T data,
                                                      Function<? super T,​? extends R> mapper,
                                                      Consumer<R> consumer)