
org.rx.util.function.Func Maven / Gradle / Ivy
package org.rx.util.function;
import lombok.SneakyThrows;
import java.util.concurrent.Callable;
import java.util.function.Supplier;
@FunctionalInterface
public interface Func extends Callable, Supplier {
Func EMPTY = () -> null;
T invoke() throws Throwable;
@SneakyThrows
@Override
default T call() throws Exception {
return invoke();
}
@SneakyThrows
@Override
default T get() {
return invoke();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy