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.
|
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,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.
|
Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.