新增能接受异常的 Function

This commit is contained in:
thinkgem
2024-04-18 21:54:18 +08:00
parent cdd95e1ad5
commit de601181df

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;
}