| Package | Description |
|---|---|
| net.openhft.chronicle.testframework.function |
This package provides a set of functional interfaces and related utility classes to enhance
and extend the standard Java functional programming model.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> @NotNull Consumer<T> |
ThrowingConsumer.of(@NotNull ThrowingConsumer<T,?> throwingConsumer)
Creates and returns a new Consumer that will wrap any exceptions thrown by the
provided
throwingConsumer in a ThrowingConsumerException. |
static <T> @NotNull NamedConsumer<T> |
NamedConsumer.ofThrowing(@NotNull ThrowingConsumer<T,?> consumer,
@NotNull String name)
Creates a NamedConsumer instance from the given ThrowingConsumer and name.
|
Copyright © 2023. All rights reserved.