| Package | Description |
|---|---|
| org.apache.camel.util |
Utility classes used by the core of Camel.
|
| org.apache.camel.util.function |
| Modifier and Type | Method and Description |
|---|---|
static <I,R,T extends Throwable> |
ObjectHelper.applyIfNotEmpty(I value,
ThrowingFunction<I,R,T> function)
Tests whether the value is not null, an empty string, an empty collection or a map and transform it using the given function.
|
static <I,R,T extends Throwable> |
ObjectHelper.applyIfNotEmpty(I value,
ThrowingFunction<I,R,T> consumer,
Supplier<R> orElse)
Tests whether the value is not null, an empty string, an empty collection or a map and transform it using the given function.
|
| Modifier and Type | Method and Description |
|---|---|
static <I,R,T extends Throwable> |
ThrowingHelper.wrapAsFunction(ThrowingFunction<I,R,T> function) |
Apache Camel