| Package | Description |
|---|---|
| net.digitalid.utility.functional.failable |
Provides failable interfaces for functional programming.
|
| net.digitalid.utility.functional.interfaces |
Provides interfaces for functional programming.
|
| net.digitalid.utility.functional.iterables |
Provides iterables with functional methods.
|
| net.digitalid.utility.functional.nullable |
Provides utility classes for handling nullable objects.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
FailableCollector<INPUT,RESULT,COLLECT_EXCEPTION extends Exception,RESULT_EXCEPTION extends Exception>
A failable collector consumes objects of type
INPUT and produces a result of type RESULT. |
| Modifier and Type | Method and Description |
|---|---|
default <SUBTYPE extends INPUT> |
FailableConsumer.after(@Nonnull FailableConsumer<? super SUBTYPE,? extends EXCEPTION> consumer)
Returns the composition of the given consumer followed by this consumer.
|
default <INITIAL_INPUT> |
FailableConsumer.after(@Nonnull FailableUnaryFunction<? super INITIAL_INPUT,? extends INPUT,? extends EXCEPTION> function)
Returns the composition of the given function followed by this consumer.
|
default <SUBTYPE extends INPUT> |
FailableConsumer.before(@Nonnull FailableConsumer<? super SUBTYPE,? extends EXCEPTION> consumer)
Returns the composition of this consumer followed by the given consumer.
|
static <INPUT,EXCEPTION extends Exception> |
FailableConsumer.compose(@Nonnull FailableConsumer<? super INPUT,? extends EXCEPTION> consumer0,
@Nonnull FailableConsumer<? super INPUT,? extends EXCEPTION> consumer1)
Returns the composition of the given consumers with a flexible exception type.
|
default @Nonnull FailableConsumer<INPUT,EXCEPTION> |
FailableConsumer.synchronize()
Returns a consumer that synchronizes on this consumer.
|
| Modifier and Type | Method and Description |
|---|---|
default <SUBTYPE extends INPUT> |
FailableConsumer.after(@Nonnull FailableConsumer<? super SUBTYPE,? extends EXCEPTION> consumer)
Returns the composition of the given consumer followed by this consumer.
|
default <SUBTYPE extends INPUT> |
FailableConsumer.before(@Nonnull FailableConsumer<? super SUBTYPE,? extends EXCEPTION> consumer)
Returns the composition of this consumer followed by the given consumer.
|
static <INPUT,EXCEPTION extends Exception> |
FailableConsumer.compose(@Nonnull FailableConsumer<? super INPUT,? extends EXCEPTION> consumer0,
@Nonnull FailableConsumer<? super INPUT,? extends EXCEPTION> consumer1)
Returns the composition of the given consumers with a flexible exception type.
|
static <INPUT,EXCEPTION extends Exception> |
FailableConsumer.compose(@Nonnull FailableConsumer<? super INPUT,? extends EXCEPTION> consumer0,
@Nonnull FailableConsumer<? super INPUT,? extends EXCEPTION> consumer1)
Returns the composition of the given consumers with a flexible exception type.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Collector<INPUT,RESULT>
A collector consumes objects of type
INPUT and produces a result of type RESULT. |
interface |
Consumer<INPUT>
This functional interface models a method that consumes objects of type
INPUT without returning a result. |
| Modifier and Type | Method and Description |
|---|---|
default <EXCEPTION extends Exception> |
FiniteIterable.doForEach(@Nonnull FailableConsumer<? super ELEMENT,? extends EXCEPTION> action)
Performs the given action for each element of this iterable and returns this iterable.
|
| Modifier and Type | Method and Description |
|---|---|
static <INPUT,EXCEPTION extends Exception> |
Evaluate.consumerIfNotNull(INPUT input,
@Nonnull FailableConsumer<? super INPUT,? extends EXCEPTION> consumer)
Lets the given consumer consume the given input if it is not null.
|
Copyright © 2017. All rights reserved.