| Package | Description |
|---|---|
| org.apache.commons.lang3.function |
Provides functional interfaces to complement those in
java.lang.function and utilities for working with Java
8 lambdas. |
| org.apache.commons.lang3.time |
Provides classes and methods to work with dates and durations.
|
| org.apache.commons.lang3.tuple |
Tuple classes, starting with a Pair class in version 3.0.
|
| Modifier and Type | Field and Description |
|---|---|
static FailableBiConsumer |
FailableBiConsumer.NOP
NOP singleton
|
| Modifier and Type | Method and Description |
|---|---|
default FailableBiConsumer<T,U,E> |
FailableBiConsumer.andThen(FailableBiConsumer<? super T,? super U,E> after)
Returns a composed
FailableBiConsumer like BiConsumer.andThen(BiConsumer). |
static <T,U> FailableBiConsumer<T,U,Throwable> |
MethodInvokers.asFailableBiConsumer(Method method)
Produces a
FailableBiConsumer for a given consumer Method. |
static <T,U,E extends Throwable> |
FailableBiConsumer.nop()
Returns The NOP singleton.
|
| Modifier and Type | Method and Description |
|---|---|
static <T,U,E extends Throwable> |
Failable.accept(FailableBiConsumer<T,U,E> consumer,
T object1,
U object2)
Consumes a consumer and rethrows any exception as a
RuntimeException. |
default FailableBiConsumer<T,U,E> |
FailableBiConsumer.andThen(FailableBiConsumer<? super T,? super U,E> after)
Returns a composed
FailableBiConsumer like BiConsumer.andThen(BiConsumer). |
static <T,U> BiConsumer<T,U> |
Failable.asBiConsumer(FailableBiConsumer<T,U,?> consumer)
Converts the given
FailableBiConsumer into a standard BiConsumer. |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Throwable> |
DurationUtils.accept(FailableBiConsumer<Long,Integer,T> consumer,
Duration duration)
Accepts the function with the duration as a long milliseconds and int nanoseconds.
|
| Modifier and Type | Method and Description |
|---|---|
<E extends Throwable> |
Pair.accept(FailableBiConsumer<L,R,E> consumer)
Accepts this key and value as arguments to the given consumer.
|
Copyright © 2001–2023 The Apache Software Foundation. All rights reserved.