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> pConsumer, O pObject)
Consumes a consumer and rethrows any exception as aRuntimeException
.static void
Functions. tryWithResources(Functions.FailableRunnable<? extends java.lang.Throwable> pAction, Functions.FailableConsumer<java.lang.Throwable,? extends java.lang.Throwable> pErrorHandler, Functions.FailableRunnable<? extends java.lang.Throwable>... pResources)
A simple try-with-resources implementation, that can be used, if your objects do not implement theAutoCloseable
interface.
-