Package | Description |
---|---|
org.apache.commons.lang3 |
Provides highly reusable static utility methods, chiefly concerned with adding value to the
java.lang classes. |
Modifier and Type | Method and Description |
---|---|
static Runnable |
Functions.asRunnable(Functions.FailableRunnable<?> runnable)
Deprecated.
Converts the given
Functions.FailableRunnable into a standard Runnable . |
static <T extends Throwable> |
Functions.run(Functions.FailableRunnable<T> runnable)
Deprecated.
Runs a runnable and rethrows any exception as a
RuntimeException . |
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 the
AutoCloseable interface. |
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 the
AutoCloseable 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 the
AutoCloseable 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 the
AutoCloseable interface. |
Copyright © 2001–2020 The Apache Software Foundation. All rights reserved.