Top Description Interfaces Classes
[default module]

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

Interface Summary

Modifier and TypeInterface and Description
public interface
BooleanConsumer

A functional interface like IntConsumer but for boolean.

public interface
ByteConsumer

A functional interface like IntConsumer but for byte.

public interface
ByteSupplier

A functional interface like IntSupplier, but for a byte.

public interface
FailableBiConsumer<
Consumed type 1.
T
,
Consumed type 2.
U
,
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like BiConsumer that declares a Throwable.

public interface
FailableBiFunction<
Input type 1.
T
,
Input type 2.
U
,
Return type.
R
,
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like BiFunction that declares a Throwable.

public interface
FailableBiPredicate<
Predicate type 1.
T
,
Predicate type 2.
U
,
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like BiPredicate that declares a Throwable.

public interface
FailableBooleanSupplier<
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like BooleanSupplier that declares a Throwable.

public interface
FailableByteConsumer<
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like ByteConsumer that declares a Throwable.

public interface
FailableByteSupplier<
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like IntSupplier, but for a byte, that declares a Throwable.

public interface
FailableCallable<
Return type.
R
,
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like java.util.concurrent.Callable that declares a Throwable.

public interface
FailableConsumer<
the type of the input to the operation
T
,
Thrown exception type.
E extends Throwable
>

A functional interface like Consumer that declares a Throwable.

public interface
FailableDoubleBinaryOperator<
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like DoubleBinaryOperator that declares a Throwable.

public interface
FailableDoubleConsumer<
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like DoubleConsumer that declares a Throwable.

public interface
FailableDoubleFunction<
Return type.
R
,
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like DoubleFunction that declares a Throwable.

public interface
FailableDoublePredicate<
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like DoublePredicate that declares a Throwable.

public interface
FailableDoubleSupplier<
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like DoubleSupplier that declares a Throwable.

public interface
FailableDoubleToIntFunction<
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like DoubleToIntFunction that declares a Throwable.

public interface
FailableDoubleToLongFunction<
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like DoubleToLongFunction that declares a Throwable.

public interface
FailableDoubleUnaryOperator<
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like DoubleUnaryOperator that declares a Throwable.

public interface
FailableFunction<
Input type 1.
T
,
Return type.
R
,
The type of thrown exception or error.
E extends Throwable
>

A functional interface like Function that declares a Throwable.

public interface
FailableIntBinaryOperator<
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like IntBinaryOperator that declares a Throwable.

public interface
FailableIntConsumer<
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like IntConsumer that declares a Throwable.

public interface
FailableIntFunction<
Return type.
R
,
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like IntFunction that declares a Throwable.

public interface
FailableIntPredicate<
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like IntPredicate that declares a Throwable.

public interface
FailableIntSupplier<
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like IntSupplier that declares a Throwable.

public interface
FailableIntToDoubleFunction<
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like IntToDoubleFunction that declares a Throwable.

public interface
FailableIntToFloatFunction<
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like IntToDoubleFunction but for float that declares a Throwable.

public interface
FailableIntToLongFunction<
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like IntToLongFunction that declares a Throwable.

public interface
FailableIntUnaryOperator<
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like IntUnaryOperator that declares a Throwable.

public interface
FailableLongBinaryOperator<
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like LongBinaryOperator that declares a Throwable.

public interface
FailableLongConsumer<
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like LongConsumer that declares a Throwable.

public interface
FailableLongFunction<
Return type.
R
,
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like LongFunction that declares a Throwable.

public interface
FailableLongPredicate<
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like LongPredicate that declares a Throwable.

public interface
FailableLongSupplier<
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like LongSupplier that declares a Throwable.

public interface
FailableLongToDoubleFunction<
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like LongToDoubleFunction that declares a Throwable.

public interface
FailableLongToIntFunction<
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like LongToIntFunction that declares a Throwable.

public interface
FailableLongUnaryOperator<
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like LongUnaryOperator that declares a Throwable.

public interface
FailableObjDoubleConsumer<
the type of the object argument to the operation.
T
,
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like ObjDoubleConsumer that declares a Throwable.

public interface
FailableObjIntConsumer<
the type of the object argument to the operation.
T
,
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like ObjIntConsumer that declares a Throwable.

public interface
FailableObjLongConsumer<
the type of the object argument to the operation.
T
,
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like ObjLongConsumer that declares a Throwable.

public interface
FailablePredicate<
Predicate type.
T
,
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like Predicate that declares a Throwable.

public interface
FailableRunnable<
The kind of Throwable.
E extends Throwable
>

A functional interface like Runnable that declares a kind of Throwable.

public interface
FailableShortSupplier<
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like IntSupplier but for short that declares a Throwable.

public interface
FailableSupplier<
The type of results supplied by this supplier.
T
,
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like Supplier that declares a Throwable.

public interface
FailableToBooleanFunction<
the type of the argument to the function
T
,
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like a ToBooleanFunction that declares a Throwable.

public interface
FailableToDoubleBiFunction<
the type of the first argument to the function
T
,
the type of the second argument to the function
U
,
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like ToDoubleBiFunction that declares a Throwable.

public interface
FailableToDoubleFunction<
the type of the argument to the function
T
,
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like ToDoubleFunction that declares a Throwable.

public interface
FailableToIntBiFunction<
the type of the first argument to the function
T
,
the type of the second argument to the function
U
,
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like ToIntBiFunction that declares a Throwable.

public interface
FailableToIntFunction<
the type of the argument to the function
T
,
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like ToIntFunction that declares a Throwable.

public interface
FailableToLongBiFunction<
the type of the first argument to the function
T
,
the type of the second argument to the function
U
,
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like ToLongBiFunction that declares a Throwable.

public interface
FailableToLongFunction<
the type of the first argument to the function
T
,
The kind of thrown exception or error.
E extends Throwable
>

A functional interface like ToLongFunction that declares a Throwable.

public interface
IntToCharFunction

Represents a function that accepts an int-valued argument and produces a char-valued result.

public interface
ToBooleanBiFunction<
the type of the first argument to the function.
T
,
the type of the second argument to the function.
U
>

A function that accepts two arguments and produces a boolean result.

public interface
TriConsumer<
type of the first argument
T
,
type of the second argument
U
,
type of the third argument
V
>

Represents an operation that accepts three input arguments and returns no result.

public interface
TriFunction<
the type of the first argument to the function
T
,
the type of the second argument to the function
U
,
the type of the third argument to the function
V
,
the type of the result of the function
R
>

Represents a function that accepts three arguments and produces a result.

Class Summary

Modifier and TypeClass and Description
public class
Consumers

Provides Consumer instances.

public class
Failable

This class provides utility functions, and classes for working with the java.util.function package, or more generally, with Java 8 lambdas.

public class
Functions

Factory for Function.

public class
MethodInvokers

Converts Method objects to lambdas.

public class
Predicates

Factory for Predicate.

public class
Suppliers

Helps use Supplier.