org.rx.util.function.BiFunc 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.io.Serializable;
import java.util.function.Function;
@FunctionalInterface
public interface BiFunc extends Function, Serializable {
R invoke(T t) throws Throwable;
@SneakyThrows
@Override
default R apply(T t) {
return invoke(t);
}
}