Package org.apache.commons.lang3.function
package org.apache.commons.lang3.function
Provides functional interfaces to complement those in
java.lang.function
and utilities for working with Java
8 lambdas.
Contains failable functional interfaces that address the fact that lambdas are supposed not to throw Exceptions, at
least not checked Exceptions, A.K.A. instances of Exception
. A failable functional interface
declares a type of Exception that may be raised if the function fails.
- Since:
- 3.11
-
ClassDescriptionA functional interface like
IntConsumer
but forboolean
.ProvidesConsumer
instances.This class provides utility functions, and classes for working with thejava.util.function
package, or more generally, with Java 8 lambdas.FailableBiConsumer<T,U, E extends Throwable> A functional interface likeBiConsumer
that declares aThrowable
.FailableBiFunction<T,U, R, E extends Throwable> A functional interface likeBiFunction
that declares aThrowable
.FailableBiPredicate<T,U, E extends Throwable> A functional interface likeBiPredicate
that declares aThrowable
.FailableBooleanSupplier<E extends Throwable>A functional interface likeBooleanSupplier
that declares aThrowable
.FailableCallable<R,E extends Throwable> FailableConsumer<T,E extends Throwable> FailableDoubleBinaryOperator<E extends Throwable>A functional interface likeDoubleBinaryOperator
that declares aThrowable
.FailableDoubleConsumer<E extends Throwable>A functional interface likeDoubleConsumer
that declares aThrowable
.FailableDoubleFunction<R,E extends Throwable> A functional interface likeDoubleFunction
that declares aThrowable
.FailableDoublePredicate<E extends Throwable>A functional interface likeDoublePredicate
that declares aThrowable
.FailableDoubleSupplier<E extends Throwable>A functional interface likeDoubleSupplier
that declares aThrowable
.FailableDoubleToIntFunction<E extends Throwable>A functional interface likeDoubleToIntFunction
that declares aThrowable
.FailableDoubleToLongFunction<E extends Throwable>A functional interface likeDoubleToLongFunction
that declares aThrowable
.FailableDoubleUnaryOperator<E extends Throwable>A functional interface likeDoubleUnaryOperator
that declares aThrowable
.FailableFunction<T,R, E extends Throwable> FailableIntBinaryOperator<E extends Throwable>A functional interface likeIntBinaryOperator
that declares aThrowable
.FailableIntConsumer<E extends Throwable>A functional interface likeIntConsumer
that declares aThrowable
.FailableIntFunction<R,E extends Throwable> A functional interface likeIntFunction
that declares aThrowable
.FailableIntPredicate<E extends Throwable>A functional interface likeIntPredicate
that declares aThrowable
.FailableIntSupplier<E extends Throwable>A functional interface likeIntSupplier
that declares aThrowable
.FailableIntToDoubleFunction<E extends Throwable>A functional interface likeIntToDoubleFunction
that declares aThrowable
.FailableIntToLongFunction<E extends Throwable>A functional interface likeIntToLongFunction
that declares aThrowable
.FailableIntUnaryOperator<E extends Throwable>A functional interface likeIntUnaryOperator
that declares aThrowable
.FailableLongBinaryOperator<E extends Throwable>A functional interface likeLongBinaryOperator
that declares aThrowable
.FailableLongConsumer<E extends Throwable>A functional interface likeLongConsumer
that declares aThrowable
.FailableLongFunction<R,E extends Throwable> A functional interface likeLongFunction
that declares aThrowable
.FailableLongPredicate<E extends Throwable>A functional interface likeLongPredicate
that declares aThrowable
.FailableLongSupplier<E extends Throwable>A functional interface likeLongSupplier
that declares aThrowable
.FailableLongToDoubleFunction<E extends Throwable>A functional interface likeLongToDoubleFunction
that declares aThrowable
.FailableLongToIntFunction<E extends Throwable>A functional interface likeLongToIntFunction
that declares aThrowable
.FailableLongUnaryOperator<E extends Throwable>A functional interface likeLongUnaryOperator
that declares aThrowable
.FailableObjDoubleConsumer<T,E extends Throwable> A functional interface likeObjDoubleConsumer
that declares aThrowable
.FailableObjIntConsumer<T,E extends Throwable> A functional interface likeObjIntConsumer
that declares aThrowable
.FailableObjLongConsumer<T,E extends Throwable> A functional interface likeObjLongConsumer
that declares aThrowable
.FailablePredicate<T,E extends Throwable> FailableRunnable<E extends Throwable>FailableShortSupplier<E extends Throwable>FailableSupplier<T,E extends Throwable> FailableToDoubleBiFunction<T,U, E extends Throwable> A functional interface likeToDoubleBiFunction
that declares aThrowable
.FailableToDoubleFunction<T,E extends Throwable> A functional interface likeToDoubleFunction
that declares aThrowable
.FailableToIntBiFunction<T,U, E extends Throwable> A functional interface likeToIntBiFunction
that declares aThrowable
.FailableToIntFunction<T,E extends Throwable> A functional interface likeToIntFunction
that declares aThrowable
.FailableToLongBiFunction<T,U, E extends Throwable> A functional interface likeToLongBiFunction
that declares aThrowable
.FailableToLongFunction<T,E extends Throwable> A functional interface likeToLongFunction
that declares aThrowable
.Factory forFunction
.Represents a function that accepts an int-valued argument and produces a char-valued result.ConvertsMethod
objects to lambdas.Helps useSupplier
.ToBooleanBiFunction<T,U> A function that accepts two arguments and produces a boolean result.TriConsumer<T,U, V> Represents an operation that accepts three input arguments and returns no result.TriFunction<T,U, V, R> Represents a function that accepts three arguments and produces a result.