Package org.apache.flink.util.function
Interface CheckedSupplier<R>
-
- All Superinterfaces:
SupplierWithException<R,Exception>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface CheckedSupplier<R> extends SupplierWithException<R,Exception>
Similar toSupplierbut can throwException.
-
-
Method Summary
Static Methods Modifier and Type Method Description static <R> CheckedSupplier<R>checked(java.util.function.Supplier<R> supplier)static <R> java.util.function.Supplier<R>unchecked(CheckedSupplier<R> checkedSupplier)-
Methods inherited from interface org.apache.flink.util.function.SupplierWithException
get
-
-
-
-
Method Detail
-
unchecked
static <R> java.util.function.Supplier<R> unchecked(CheckedSupplier<R> checkedSupplier)
-
checked
static <R> CheckedSupplier<R> checked(java.util.function.Supplier<R> supplier)
-
-