新增能接受异常的 Function

This commit is contained in:
thinkgem
2024-04-18 21:54:24 +08:00
parent 8de5edc40e
commit 2029cfc65a

View File

@@ -0,0 +1,16 @@
/**
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
* No deletion without permission, or be held responsible to law.
*/
package com.jeesite.common.callback;
/**
* 能接受异常的 Function
* @author ThinkGem
*/
@FunctionalInterface
public interface FunctionCatchException<T, R> {
R apply(T t) throws Exception;
}