
org.rx.util.function.Func Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rxlib Show documentation
Show all versions of rxlib Show documentation
A set of utilities for Java
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 {
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