Rename type parameter to match the stock Supplier

This commit is contained in:
Gary Gregory 2023-10-16 10:36:54 -04:00
parent 6f799a1aeb
commit 88879df3a9
1 changed files with 3 additions and 3 deletions

View File

@ -22,12 +22,12 @@ import java.util.function.Supplier;
/**
* A functional interface like {@link Supplier} that declares a {@link Throwable}.
*
* @param <R> Return type.
* @param <T> Return type.
* @param <E> The kind of thrown exception or error.
* @since 3.11
*/
@FunctionalInterface
public interface FailableSupplier<R, E extends Throwable> {
public interface FailableSupplier<T, E extends Throwable> {
/**
* Returns the singleton supplier that always returns null.
@ -62,5 +62,5 @@ public interface FailableSupplier<R, E extends Throwable> {
* @return a result
* @throws E if the supplier fails
*/
R get() throws E;
T get() throws E;
}