Package net.groboclown.retval.function
Interface NonnullThrowsFunction<T,R>
-
- Type Parameters:
T- argument typeR- return type
- 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 NonnullThrowsFunction<T,R>A version ofFunctionthat explicitly returns a non-null value, and takes a non-null parameter value, and throws exceptions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Rapply(T value)Run the function.
-
-
-
Method Detail
-
apply
@Nonnull R apply(@Nonnull T value) throws java.lang.Exception
Run the function. The caller must assert the non-null validity of the argument; the receiver should safely assume the argument is non-null. This can throw any kind of exception.- Parameters:
value- non-null parameter- Returns:
- non-null value
- Throws:
java.lang.Exception- any exception type
-
-