Package net.groboclown.retval.function
Functional interfaces that are null-aware. They are
equivalents to the built-in Java
java.util.function interfaces.
Even though, for symmetry, some functional interfaces seem like they should be included, they are not required by the accompanying code, so they are intentionally left out to keep this library as minimal as possible.
-
Interface Summary Interface Description NonnullBiConsumer<T,V> An equivalent toBiConsumer, where the parameters are non-null.NonnullConsumer<T> A version ofConsumerbut with an explicit nonnull value.NonnullFirstBiConsumer<T,V> An equivalent toBiConsumer, where the first argument is non-null.NonnullFunction<T,R> A version ofFunctionthat explicitly returns a non-null value, and takes a non-null parameter value.NonnullParamFunction<T,R> A version of theFunctioninterface where the parameter is explicitly non-null, and the return value is nullable.NonnullReturnFunction<T,R> A version of theFunctioninterface with an explicitly non-null return value, but nullable parameter value.NonnullSupplier<T> A version of theSupplierinterface with an explicit non-null return value.NonnullThrowsFunction<T,R> A version ofFunctionthat explicitly returns a non-null value, and takes a non-null parameter value, and throws exceptions.