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.A functional interface likeBiConsumer
that declares aThrowable
.A functional interface likeBiFunction
that declares aThrowable
.A functional interface likeBiPredicate
that declares aThrowable
.FailableBooleanSupplier<E extends Throwable>A functional interface likeBooleanSupplier
that declares aThrowable
.FailableDoubleBinaryOperator<E extends Throwable>A functional interface likeDoubleBinaryOperator
that declares aThrowable
.FailableDoubleConsumer<E extends Throwable>A functional interface likeDoubleConsumer
that declares aThrowable
.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
.FailableIntBinaryOperator<E extends Throwable>A functional interface likeIntBinaryOperator
that declares aThrowable
.FailableIntConsumer<E extends Throwable>A functional interface likeIntConsumer
that declares aThrowable
.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
.FailableIntToFloatFunction<E extends Throwable>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
.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
.A functional interface likeObjDoubleConsumer
that declares aThrowable
.A functional interface likeObjIntConsumer
that declares aThrowable
.A functional interface likeObjLongConsumer
that declares aThrowable
.FailableRunnable<E extends Throwable>FailableShortSupplier<E extends Throwable>A functional interface like aToBooleanFunction
that declares aThrowable
.A functional interface likeToDoubleBiFunction
that declares aThrowable
.A functional interface likeToDoubleFunction
that declares aThrowable
.A functional interface likeToIntBiFunction
that declares aThrowable
.A functional interface likeToIntFunction
that declares aThrowable
.A functional interface likeToLongBiFunction
that declares aThrowable
.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.Factory forPredicate
.Helps useSupplier
.ToBooleanBiFunction<T,U> A function that accepts two arguments and produces a boolean result.Represents an operation that accepts three input arguments and returns no result.Represents a function that accepts three arguments and produces a result.