Uses of Interface
org.apache.commons.lang3.function.FailableSupplier
Package
Description
Assists in creating consistent
equals(Object)
, toString()
, hashCode()
, and compareTo(Object)
methods.Provides support classes for multi-threaded programming.
Provides functional interfaces to complement those in
java.lang.function
and utilities for working with Java
8 lambdas.-
Uses of FailableSupplier in org.apache.commons.lang3.builder
Modifier and TypeClassDescriptionclass
AbstractSupplier<T,
B extends AbstractSupplier<T, B, E>, E extends Throwable> Abstracts supplying an instance ofT
. -
Uses of FailableSupplier in org.apache.commons.lang3.concurrent
Modifier and TypeInterfaceDescriptioninterface
Defines the thread-safe initialization of objects.Modifier and TypeClassDescriptionclass
AbstractConcurrentInitializer<T,
E extends Exception> Abstracts and defines operations forConcurrentInitializer
implementations.static class
AbstractConcurrentInitializer.AbstractBuilder<I extends AbstractConcurrentInitializer<T,
E>, T, B extends AbstractConcurrentInitializer.AbstractBuilder<I, T, B, E>, E extends Exception> Builds a new instance for subclasses.class
A specialized implementation of theConcurrentInitializer
interface based on anAtomicReference
variable.static class
AtomicInitializer.Builder<I extends AtomicInitializer<T>,
T> Builds a new instance.class
A specializedConcurrentInitializer
implementation which is similar toAtomicInitializer
, but ensures that theAbstractConcurrentInitializer.initialize()
method is called only once.static class
AtomicSafeInitializer.Builder<I extends AtomicSafeInitializer<T>,
T> Builds a new instance.class
A class that allows complex initialization operations in a background task.static class
BackgroundInitializer.Builder<I extends BackgroundInitializer<T>,
T> Builds a new instance.class
A specializedBackgroundInitializer
implementation that wraps aCallable
object.class
A very simple implementation of theConcurrentInitializer
interface which always returns the same object.class
This class provides a generic implementation of the lazy initialization pattern.static class
LazyInitializer.Builder<I extends LazyInitializer<T>,
T> Builds a new instance.class
A specializedBackgroundInitializer
implementation that can deal with multiple background initialization tasks.Modifier and TypeMethodDescriptionFailableSupplier<T,
? extends Exception> AbstractConcurrentInitializer.AbstractBuilder.getInitializer()
Gets the initializer supplier called byAbstractConcurrentInitializer.initialize()
.Modifier and TypeMethodDescriptionAbstractConcurrentInitializer.AbstractBuilder.setInitializer
(FailableSupplier<T, ? extends Exception> initializer) Sets the initializer supplier called byAbstractConcurrentInitializer.initialize()
. -
Uses of FailableSupplier in org.apache.commons.lang3.function
Modifier and TypeFieldDescriptionstatic final FailableSupplier
FailableSupplier.NUL
Returns the singleton supplier that always returns null.Modifier and TypeMethodDescriptionstatic <R> FailableSupplier<R,
Throwable> MethodInvokers.asFailableSupplier
(Method method) Produces aFailableSupplier
for a given a supplier Method.static <T,
E extends Exception>
FailableSupplier<T,E> FailableSupplier.nul()
Returns the singleton supplier that always returns null.Modifier and TypeMethodDescriptionstatic <T> Supplier<T>
Failable.asSupplier
(FailableSupplier<T, ?> supplier) Converts the givenFailableSupplier
into a standardSupplier
.static <T,
E extends Throwable>
TFailable.get
(FailableSupplier<T, E> supplier) Invokes a supplier, and returns the result.