Uses of Interface
org.apache.commons.lang3.function.FailableConsumer
-
Packages that use FailableConsumer Package Description org.apache.commons.lang3.concurrent.locks Provides support classes for multi-threaded programming.org.apache.commons.lang3.function Provides functional interfaces to complement those injava.lang.function
and utilities for working with Java 8 lambdas.org.apache.commons.lang3.stream Provides utility classes to complement those injava.util.stream
. -
-
Uses of FailableConsumer in org.apache.commons.lang3.concurrent.locks
Methods in org.apache.commons.lang3.concurrent.locks with parameters of type FailableConsumer Modifier and Type Method Description void
LockingVisitors.LockVisitor. acceptReadLocked(FailableConsumer<O,?> consumer)
Provides read (shared, non-exclusive) access to the locked (hidden) object.void
LockingVisitors.LockVisitor. acceptWriteLocked(FailableConsumer<O,?> consumer)
Provides write (exclusive) access to the locked (hidden) object.protected void
LockingVisitors.LockVisitor. lockAcceptUnlock(java.util.function.Supplier<java.util.concurrent.locks.Lock> lockSupplier, FailableConsumer<O,?> consumer)
This method provides the default implementation forLockingVisitors.LockVisitor.acceptReadLocked(FailableConsumer)
, andLockingVisitors.LockVisitor.acceptWriteLocked(FailableConsumer)
. -
Uses of FailableConsumer in org.apache.commons.lang3.function
Fields in org.apache.commons.lang3.function declared as FailableConsumer Modifier and Type Field Description static FailableConsumer
FailableConsumer. NOP
NOP singletonMethods in org.apache.commons.lang3.function that return FailableConsumer Modifier and Type Method Description default FailableConsumer<T,E>
FailableConsumer. andThen(FailableConsumer<? super T,E> after)
Returns a composedConsumer
likeConsumer.andThen(Consumer)
.static <T,E extends java.lang.Throwable>
FailableConsumer<T,E>FailableConsumer. nop()
Returns The NOP singleton.Methods in org.apache.commons.lang3.function with parameters of type FailableConsumer Modifier and Type Method Description static <T,E extends java.lang.Throwable>
voidFailable. accept(FailableConsumer<T,E> consumer, T object)
Consumes a consumer and rethrows any exception as aRuntimeException
.default FailableConsumer<T,E>
FailableConsumer. andThen(FailableConsumer<? super T,E> after)
Returns a composedConsumer
likeConsumer.andThen(Consumer)
.static <T> java.util.function.Consumer<T>
Failable. asConsumer(FailableConsumer<T,?> consumer)
Converts the givenFailableConsumer
into a standardConsumer
.static void
Failable. tryWithResources(FailableRunnable<? extends java.lang.Throwable> action, FailableConsumer<java.lang.Throwable,? extends java.lang.Throwable> errorHandler, FailableRunnable<? extends java.lang.Throwable>... resources)
A simple try-with-resources implementation, that can be used, if your objects do not implement theAutoCloseable
interface. -
Uses of FailableConsumer in org.apache.commons.lang3.stream
Methods in org.apache.commons.lang3.stream with parameters of type FailableConsumer Modifier and Type Method Description void
Streams.FailableStream. forEach(FailableConsumer<O,?> action)
Performs an action for each element of this stream.
-