io.apicurio.registry.utils.Functional Maven / Gradle / Ivy
The newest version!
package io.apicurio.registry.utils;
public final class Functional {
private Functional() {
}
@FunctionalInterface
public interface RunnableEx {
void run() throws X;
}
@FunctionalInterface
public interface Runnable1Ex {
void run(T value) throws X;
}
public static Runnable1Ex runnable1ExNoop() {
return x -> {
};
}
@FunctionalInterface
public interface FunctionEx {
R run() throws X;
}
@FunctionalInterface
public interface Function1Ex {
R run(T value) throws X;
}
}