Package io.github.connellite.function
Interface UncheckedSupplier<T>
- All Superinterfaces:
Supplier<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Supplier that may throw; checked exceptions are rethrown via ReflectionUtil.propagate(Throwable).-
Method Summary
Modifier and TypeMethodDescriptiondefault Tget()Delegates touncheckedGet(); checked exceptions are propagated.static <T> UncheckedSupplier<T>of(UncheckedSupplier<T> supplier) Gives a throwing method reference this interface as its target type.Same asget(), but may throw.
-
Method Details
-
get
Delegates touncheckedGet(); checked exceptions are propagated. -
uncheckedGet
Same asget(), but may throw.- Throws:
Throwable
-
of
Gives a throwing method reference this interface as its target type. The same instance is returned;get()still propagates checked exceptions.
-