Package com.google.mu.function
Interface CheckedSupplier<T,E extends Throwable>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A supplier that can throw checked exceptions.
-
Method Summary
Modifier and TypeMethodDescriptiondefault <R> CheckedSupplier
<R, E> andThen
(CheckedFunction<? super T, ? extends R, ? extends E> mapper) Returns a newCheckedSupplier
that maps the return value usingmapper
.get()
-
Method Details
-
get
- Throws:
E
-
andThen
Returns a newCheckedSupplier
that maps the return value usingmapper
. For example:(x -> 1).andThen(Object::toString).get() => "1"
.
-