org.macrocloud.kernel.toolkit.function.CheckedFunction Maven / Gradle / Ivy
package org.macrocloud.kernel.toolkit.function;
import org.springframework.lang.Nullable;
/**
* 受检的 function.
*
* @author macro
* @param the generic type
* @param the generic type
*/
@FunctionalInterface
public interface CheckedFunction {
/**
* Run the Function.
*
* @param t T
* @return R R
* @throws Throwable CheckedException
*/
@Nullable
R apply(@Nullable T t) throws Throwable;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy