
com.aggrepoint.utils.LambdaUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aputils Show documentation
Show all versions of aputils Show documentation
Common utilities used by both Dao and Winlet project
package com.aggrepoint.utils;
import java.util.function.Consumer;
import java.util.function.Function;
public class LambdaUtils {
public static void consumeIfNotNull(T val, Consumer consumer) {
if (val != null)
consumer.accept(val);
}
public static R ifNotNull(T val, Function func) {
if (val != null)
return func.apply(val);
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy