Package utility.function
package utility.function
-
ClassDescriptionA generic functional interface that is more semantically sound than
Runnable
.A utility class to help create dummy stub functional interfacesExceptionalCallback<E extends Throwable>A generic functional interface that is more semantically sound thanRunnable
.ExceptionalConsumer<T,E extends Throwable> A generic functional interface that allows you to consume an item and potentially throw an exception.ExceptionalFunction<I,R, E extends Throwable> A generic functional interface that allows you to consume an item, return a result, and potentially throw an exception.ExceptionalSupplier<T,E extends Throwable> A generic functional interface that is more semantically sound thanRunnable
.TerminatingConsumer is a ConsumerConsumer
that can request termination of the supplier once some condition is reached, for example some number of consumed results accepted.