Uses of Interface
org.apache.commons.lang3.function.FailableFunction
-
Packages that use FailableFunction Package Description org.apache.commons.lang3 Provides highly reusable utility methods, chiefly concerned with adding value to thejava.langclasses.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.functionand utilities for working with Java 8 lambdas.org.apache.commons.lang3.stream Provides utility classes to complement those injava.util.stream. -
-
Uses of FailableFunction in org.apache.commons.lang3
Methods in org.apache.commons.lang3 with parameters of type FailableFunction Modifier and Type Method Description private static <T,R,E extends java.lang.Throwable>
R[]ArrayUtils. map(T[] array, java.lang.Class<R> componentType, FailableFunction<? super T,? extends R,E> mapper)Maps elements from an array into elements of a new array of a given type, while mapping old elements to new elements. -
Uses of FailableFunction in org.apache.commons.lang3.concurrent.locks
Methods in org.apache.commons.lang3.concurrent.locks with parameters of type FailableFunction Modifier and Type Method Description <T> TLockingVisitors.LockVisitor. applyReadLocked(FailableFunction<O,T,?> function)Provides read (shared, non-exclusive) access to The object to protect for the purpose of computing a result object.<T> TLockingVisitors.LockVisitor. applyWriteLocked(FailableFunction<O,T,?> function)Provides write (exclusive) access to The object to protect for the purpose of computing a result object.protected <T> TLockingVisitors.LockVisitor. lockApplyUnlock(java.util.function.Supplier<java.util.concurrent.locks.Lock> lockSupplier, FailableFunction<O,T,?> function)This method provides the actual implementation forLockingVisitors.LockVisitor.applyReadLocked(FailableFunction), andLockingVisitors.LockVisitor.applyWriteLocked(FailableFunction). -
Uses of FailableFunction in org.apache.commons.lang3.function
Fields in org.apache.commons.lang3.function declared as FailableFunction Modifier and Type Field Description static FailableFunctionFailableFunction. NOPNOP singletonMethods in org.apache.commons.lang3.function that return FailableFunction Modifier and Type Method Description default <V> FailableFunction<T,V,E>FailableFunction. andThen(FailableFunction<? super R,? extends V,E> after)Returns a composedFailableFunctionlikeFunction.andThen(Function).static <T,R>
FailableFunction<T,R,java.lang.Throwable>MethodInvokers. asFailableFunction(java.lang.reflect.Method method)Produces aFailableFunctionfor a given a supplier Method.default <V> FailableFunction<V,R,E>FailableFunction. compose(FailableFunction<? super V,? extends T,E> before)Returns a composedFailableFunctionlikeFunction.compose(Function).static <T,R,E extends java.lang.Throwable>
FailableFunction<T,R,E>FailableFunction. function(FailableFunction<T,R,E> function)Starts a fluent chain likefunction(foo::bar).andThen(...).andThen(...).apply(...);static <T,E extends java.lang.Throwable>
FailableFunction<T,T,E>FailableFunction. identity()Returns a function that always returns its input argument.static <T,R,E extends java.lang.Throwable>
FailableFunction<T,R,E>FailableFunction. nop()Gets the NOP singleton.Methods in org.apache.commons.lang3.function with parameters of type FailableFunction Modifier and Type Method Description default <V> FailableBiFunction<T,U,V,E>FailableBiFunction. andThen(FailableFunction<? super R,? extends V,E> after)Returns a composedFailableBiFunctionthat likeBiFunction.andThen(Function).default <V> FailableFunction<T,V,E>FailableFunction. andThen(FailableFunction<? super R,? extends V,E> after)Returns a composedFailableFunctionlikeFunction.andThen(Function).static <T,R,E extends java.lang.Throwable>
RFailable. apply(FailableFunction<T,R,E> function, T input)Applies a function and rethrows any exception as aRuntimeException.static <T,R,E extends java.lang.Throwable>
RFailable. applyNonNull(T value, FailableFunction<? super T,? extends R,E> mapper)Applies a value to a function if the value isn'tnull, otherwise the method returnsnull.static <T,U,R,E1 extends java.lang.Throwable,E2 extends java.lang.Throwable>
RFailable. applyNonNull(T value1, FailableFunction<? super T,? extends U,E1> mapper1, FailableFunction<? super U,? extends R,E2> mapper2)Applies values to a chain of functions, where anullcan short-circuit each step.static <T,U,V,R,E1 extends java.lang.Throwable,E2 extends java.lang.Throwable,E3 extends java.lang.Throwable>
RFailable. applyNonNull(T value1, FailableFunction<? super T,? extends U,E1> mapper1, FailableFunction<? super U,? extends V,E2> mapper2, FailableFunction<? super V,? extends R,E3> mapper3)Applies values to a chain of functions, where anullcan short-circuit each step.static <T,R>
java.util.function.Function<T,R>Failable. asFunction(FailableFunction<T,R,?> function)Converts the givenFailableFunctioninto a standardFunction.default <V> FailableFunction<V,R,E>FailableFunction. compose(FailableFunction<? super V,? extends T,E> before)Returns a composedFailableFunctionlikeFunction.compose(Function).static <T,R,E extends java.lang.Throwable>
FailableFunction<T,R,E>FailableFunction. function(FailableFunction<T,R,E> function)Starts a fluent chain likefunction(foo::bar).andThen(...).andThen(...).apply(...); -
Uses of FailableFunction in org.apache.commons.lang3.stream
Methods in org.apache.commons.lang3.stream with parameters of type FailableFunction Modifier and Type Method Description <R> Streams.FailableStream<R>Streams.FailableStream. map(FailableFunction<T,R,?> mapper)Returns a stream consisting of the results of applying the given function to the elements of this stream.
-