Uses of Interface
org.apache.commons.lang3.Functions.FailableConsumer
-
Packages that use Functions.FailableConsumer Package Description org.apache.commons.lang3 Provides highly reusable static utility methods, chiefly concerned with adding value to thejava.lang
classes. -
-
Uses of Functions.FailableConsumer in org.apache.commons.lang3
Methods in org.apache.commons.lang3 with parameters of type Functions.FailableConsumer Modifier and Type Method Description static <O,T extends java.lang.Throwable>
voidFunctions. accept(Functions.FailableConsumer<O,T> consumer, O object)
Deprecated.Consumes a consumer and rethrows any exception as aRuntimeException
.static <I> java.util.function.Consumer<I>
Functions. asConsumer(Functions.FailableConsumer<I,?> consumer)
Deprecated.Converts the givenFunctions.FailableConsumer
into a standardConsumer
.void
Streams.FailableStream. forEach(Functions.FailableConsumer<O,?> action)
Deprecated.Performs an action for each element of this stream.static void
Functions. tryWithResources(Functions.FailableRunnable<? extends java.lang.Throwable> action, Functions.FailableConsumer<java.lang.Throwable,? extends java.lang.Throwable> errorHandler, Functions.FailableRunnable<? extends java.lang.Throwable>... resources)
Deprecated.A simple try-with-resources implementation, that can be used, if your objects do not implement theAutoCloseable
interface.
-