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
IntConsumerbut forboolean.A functional interface likeIntConsumerbut forbyte.A functional interface likeIntSupplier, but for a byte.ProvidesConsumerinstances.This class provides utility functions, and classes for working with thejava.util.functionpackage, or more generally, with Java 8 lambdas.FailableBiConsumer<T, U, E extends Throwable>A functional interface likeBiConsumerthat declares aThrowable.FailableBiFunction<T, U, R, E extends Throwable>A functional interface likeBiFunctionthat declares aThrowable.FailableBiPredicate<T, U, E extends Throwable>A functional interface likeBiPredicatethat declares aThrowable.FailableBooleanSupplier<E extends Throwable>A functional interface likeBooleanSupplierthat declares aThrowable.FailableByteConsumer<E extends Throwable>A functional interface likeByteConsumerthat declares aThrowable.FailableByteSupplier<E extends Throwable>A functional interface likeIntSupplier, but for a byte, that declares aThrowable.FailableCallable<R, E extends Throwable>FailableConsumer<T, E extends Throwable>FailableDoubleBinaryOperator<E extends Throwable>A functional interface likeDoubleBinaryOperatorthat declares aThrowable.FailableDoubleConsumer<E extends Throwable>A functional interface likeDoubleConsumerthat declares aThrowable.FailableDoubleFunction<R, E extends Throwable>A functional interface likeDoubleFunctionthat declares aThrowable.FailableDoublePredicate<E extends Throwable>A functional interface likeDoublePredicatethat declares aThrowable.FailableDoubleSupplier<E extends Throwable>A functional interface likeDoubleSupplierthat declares aThrowable.FailableDoubleToIntFunction<E extends Throwable>A functional interface likeDoubleToIntFunctionthat declares aThrowable.FailableDoubleToLongFunction<E extends Throwable>A functional interface likeDoubleToLongFunctionthat declares aThrowable.FailableDoubleUnaryOperator<E extends Throwable>A functional interface likeDoubleUnaryOperatorthat declares aThrowable.FailableFunction<T, R, E extends Throwable>FailableIntBinaryOperator<E extends Throwable>A functional interface likeIntBinaryOperatorthat declares aThrowable.FailableIntConsumer<E extends Throwable>A functional interface likeIntConsumerthat declares aThrowable.FailableIntFunction<R, E extends Throwable>A functional interface likeIntFunctionthat declares aThrowable.FailableIntPredicate<E extends Throwable>A functional interface likeIntPredicatethat declares aThrowable.FailableIntSupplier<E extends Throwable>A functional interface likeIntSupplierthat declares aThrowable.FailableIntToDoubleFunction<E extends Throwable>A functional interface likeIntToDoubleFunctionthat declares aThrowable.FailableIntToFloatFunction<E extends Throwable>FailableIntToLongFunction<E extends Throwable>A functional interface likeIntToLongFunctionthat declares aThrowable.FailableIntUnaryOperator<E extends Throwable>A functional interface likeIntUnaryOperatorthat declares aThrowable.FailableLongBinaryOperator<E extends Throwable>A functional interface likeLongBinaryOperatorthat declares aThrowable.FailableLongConsumer<E extends Throwable>A functional interface likeLongConsumerthat declares aThrowable.FailableLongFunction<R, E extends Throwable>A functional interface likeLongFunctionthat declares aThrowable.FailableLongPredicate<E extends Throwable>A functional interface likeLongPredicatethat declares aThrowable.FailableLongSupplier<E extends Throwable>A functional interface likeLongSupplierthat declares aThrowable.FailableLongToDoubleFunction<E extends Throwable>A functional interface likeLongToDoubleFunctionthat declares aThrowable.FailableLongToIntFunction<E extends Throwable>A functional interface likeLongToIntFunctionthat declares aThrowable.FailableLongUnaryOperator<E extends Throwable>A functional interface likeLongUnaryOperatorthat declares aThrowable.FailableObjDoubleConsumer<T, E extends Throwable>A functional interface likeObjDoubleConsumerthat declares aThrowable.FailableObjIntConsumer<T, E extends Throwable>A functional interface likeObjIntConsumerthat declares aThrowable.FailableObjLongConsumer<T, E extends Throwable>A functional interface likeObjLongConsumerthat declares aThrowable.FailablePredicate<T, E extends Throwable>FailableRunnable<E extends Throwable>FailableShortSupplier<E extends Throwable>FailableSupplier<T, E extends Throwable>FailableToBooleanFunction<T, E extends Throwable>A functional interface like aToBooleanFunctionthat declares aThrowable.FailableToDoubleBiFunction<T, U, E extends Throwable>A functional interface likeToDoubleBiFunctionthat declares aThrowable.FailableToDoubleFunction<T, E extends Throwable>A functional interface likeToDoubleFunctionthat declares aThrowable.FailableToIntBiFunction<T, U, E extends Throwable>A functional interface likeToIntBiFunctionthat declares aThrowable.FailableToIntFunction<T, E extends Throwable>A functional interface likeToIntFunctionthat declares aThrowable.FailableToLongBiFunction<T, U, E extends Throwable>A functional interface likeToLongBiFunctionthat declares aThrowable.FailableToLongFunction<T, E extends Throwable>A functional interface likeToLongFunctionthat declares aThrowable.Factory forFunction.Represents a function that accepts an int-valued argument and produces a char-valued result.ConvertsMethodobjects to lambdas.Factory forPredicate.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.