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.

@FunctionalInterface public interface UncheckedSupplier<T> extends Supplier<T>
Supplier that may throw; checked exceptions are rethrown via ReflectionUtil.propagate(Throwable).
  • Method Summary

    Modifier and Type
    Method
    Description
    default T
    get()
    Delegates to uncheckedGet(); checked exceptions are propagated.
    static <T> UncheckedSupplier<T>
    of(UncheckedSupplier<T> supplier)
    Gives a throwing method reference this interface as its target type.
    Same as get(), but may throw.
  • Method Details