All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.zhangxd1989.basetool.lang.func.VoidFunc0 Maven / Gradle / Ivy

There is a newer version: 1.0.16
Show newest version
package com.github.zhangxd1989.basetool.lang.func;

/**
 * 函数对象
* 接口灵感来自于ActFramework
* 一个函数接口代表一个一个函数,用于包装一个函数为对象
* 在JDK8之前,Java的函数并不能作为参数传递,也不能作为返回值存在,此接口用于将一个函数包装成为一个对象,从而传递对象 * * @author sheldon */ public interface VoidFunc0 { /** * 执行函数 * * @throws Exception 自定义异常 */ void call() throws Exception; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy