Skip to content

Commit

Permalink
Added CheckedSupplier.
Browse files Browse the repository at this point in the history
  • Loading branch information
Agadar committed Aug 16, 2020
1 parent caaa315 commit b2187e8
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.github.agadar.nationstates.function;

import java.util.function.Supplier;

/**
* Supplier reference that can throw an Exception. See also {@link Supplier}.
*
* @author Agadar (https://github.com/Agadar/)
*
* @param <R> the type of the result of the function
*/
@FunctionalInterface
public interface CheckedSupplier<R> {
R get() throws Exception;
}

0 comments on commit b2187e8

Please sign in to comment.