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 in
java.lang.function and utilities for working with Java
8 lambdas. |
org.apache.commons.lang3.stream |
Provides utility classes to complement those in
java.util.stream . |
Modifier and Type | Method and Description |
---|---|
<T> T |
LockingVisitors.LockVisitor.applyReadLocked(FailableFunction<O,T,?> function)
Provides read (shared, non-exclusive) access to the locked (hidden) object for the purpose of computing a
result object.
|
<T> T |
LockingVisitors.LockVisitor.applyWriteLocked(FailableFunction<O,T,?> function)
Provides write (exclusive) access to the locked (hidden) object for the purpose of computing a result object.
|
protected <T> T |
LockingVisitors.LockVisitor.lockApplyUnlock(Supplier<Lock> lockSupplier,
FailableFunction<O,T,?> function)
This method provides the actual implementation for
LockingVisitors.LockVisitor.applyReadLocked(FailableFunction) , and
LockingVisitors.LockVisitor.applyWriteLocked(FailableFunction) . |
Modifier and Type | Field and Description |
---|---|
static FailableFunction |
FailableFunction.NOP
NOP singleton
|
Modifier and Type | Method and Description |
---|---|
default <V> FailableFunction<T,V,E> |
FailableFunction.andThen(FailableFunction<? super R,? extends V,E> after)
Returns a composed
FailableFunction like Function.andThen(Function) . |
default <V> FailableFunction<V,R,E> |
FailableFunction.compose(FailableFunction<? super V,? extends T,E> before)
Returns a composed
FailableFunction like Function.compose(Function) . |
static <T,E extends Throwable> |
FailableFunction.identity()
Returns a function that always returns its input argument.
|
static <T,R,E extends Throwable> |
FailableFunction.nop()
Returns The NOP singleton.
|
Modifier and Type | Method and Description |
---|---|
default <V> FailableBiFunction<T,U,V,E> |
FailableBiFunction.andThen(FailableFunction<? super R,? extends V,E> after)
Returns a composed
FailableBiFunction that like BiFunction.andThen(Function) . |
default <V> FailableFunction<T,V,E> |
FailableFunction.andThen(FailableFunction<? super R,? extends V,E> after)
Returns a composed
FailableFunction like Function.andThen(Function) . |
static <T,R,E extends Throwable> |
Failable.apply(FailableFunction<T,R,E> function,
T input)
Applies a function and rethrows any exception as a
RuntimeException . |
static <T,R> Function<T,R> |
Failable.asFunction(FailableFunction<T,R,?> function)
Converts the given
FailableFunction into a standard Function . |
default <V> FailableFunction<V,R,E> |
FailableFunction.compose(FailableFunction<? super V,? extends T,E> before)
Returns a composed
FailableFunction like Function.compose(Function) . |
Modifier and Type | Method and Description |
---|---|
<R> Streams.FailableStream<R> |
Streams.FailableStream.map(FailableFunction<O,R,?> mapper)
Returns a stream consisting of the results of applying the given function to the elements of this stream.
|
Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.