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