Uses of Interface
org.apache.commons.lang3.Functions.FailableRunnable
Package
Description
Provides highly reusable static utility methods, chiefly concerned with adding value to the
java.lang
classes.-
Uses of Functions.FailableRunnable in org.apache.commons.lang3
Modifier and TypeMethodDescriptionstatic Runnable
Functions.asRunnable
(Functions.FailableRunnable<?> runnable) Deprecated.Converts the givenFunctions.FailableRunnable
into a standardRunnable
.static <T extends Throwable>
voidFunctions.run
(Functions.FailableRunnable<T> runnable) Deprecated.Runs a runnable and rethrows any exception as aRuntimeException
.static void
Functions.tryWithResources
(Functions.FailableRunnable<? extends Throwable> action, Functions.FailableConsumer<Throwable, ? extends Throwable> errorHandler, Functions.FailableRunnable<? extends Throwable>... resources) Deprecated.A simple try-with-resources implementation, that can be used, if your objects do not implement theAutoCloseable
interface.static void
Functions.tryWithResources
(Functions.FailableRunnable<? extends Throwable> action, Functions.FailableRunnable<? extends Throwable>... resources) Deprecated.A simple try-with-resources implementation, that can be used, if your objects do not implement theAutoCloseable
interface.