| Package | Description |
|---|---|
| net.digitalid.utility.functional.failable |
Provides failable interfaces for functional programming.
|
| net.digitalid.utility.functional.interfaces |
Provides interfaces for functional programming.
|
| Modifier and Type | Method and Description |
|---|---|
default @Nonnull Consumer<INPUT> |
FailableConsumer.suppressExceptions()
Returns a consumer that suppresses the exceptions of this consumer.
|
default @Nonnull Consumer<INPUT> |
FailableConsumer.suppressExceptions(@Nonnull Consumer<? super Exception> handler)
Returns a consumer that suppresses the exceptions of this consumer and passes them to the given exception handler instead.
|
| Modifier and Type | Method and Description |
|---|---|
default @Nonnull UnaryFunction<INPUT,OUTPUT> |
FailableUnaryFunction.suppressExceptions(@Nonnull Consumer<? super Exception> handler)
Returns a function that catches the exceptions of this function, passes them to the given exception handler and returns null instead.
|
default @Nonnull BinaryOperator<TYPE> |
FailableBinaryOperator.suppressExceptions(@Nonnull Consumer<? super Exception> handler) |
default @Nonnull Predicate<INPUT> |
FailablePredicate.suppressExceptions(@Nonnull Consumer<? super Exception> handler)
Returns a predicate that catches the exceptions of this predicate, passes them to the given exception handler and returns false instead.
|
default @Nonnull Producer<OUTPUT> |
FailableProducer.suppressExceptions(@Nonnull Consumer<? super Exception> handler)
Returns a producer that catches the exceptions of this producer, passes them to the given exception handler and returns null instead.
|
default @Nonnull UnaryOperator<TYPE> |
FailableUnaryOperator.suppressExceptions(@Nonnull Consumer<? super Exception> handler) |
default @Nonnull BinaryFunction<INPUT0,INPUT1,OUTPUT> |
FailableBinaryFunction.suppressExceptions(@Nonnull Consumer<? super Exception> handler)
Returns a function that catches the exceptions of this function, passes them to the given exception handler and returns null instead.
|
default @Nonnull Consumer<INPUT> |
FailableConsumer.suppressExceptions(@Nonnull Consumer<? super Exception> handler)
Returns a consumer that suppresses the exceptions of this consumer and passes them to the given exception handler instead.
|
default @Nonnull Collector<INPUT,RESULT> |
FailableCollector.suppressExceptions(@Nonnull Consumer<? super Exception> handler)
Returns a collector that suppresses the exceptions of this collector, passes them to the given exception handler and returns null instead.
|
default @Nonnull Predicate<INPUT> |
FailablePredicate.suppressExceptions(@Nonnull Consumer<? super Exception> handler,
boolean defaultOutput)
Returns a predicate that catches the exceptions of this predicate, passes them to the given exception handler and returns the given default output instead.
|
default @Nonnull UnaryFunction<INPUT,OUTPUT> |
FailableUnaryFunction.suppressExceptions(@Nonnull Consumer<? super Exception> handler,
OUTPUT defaultOutput)
Returns a function that catches the exceptions of this function, passes them to the given exception handler and returns the given default output instead.
|
default @Nonnull Producer<OUTPUT> |
FailableProducer.suppressExceptions(@Nonnull Consumer<? super Exception> handler,
OUTPUT defaultOutput)
Returns a producer that catches the exceptions of this producer, passes them to the given exception handler and returns the given default output instead.
|
default @Nonnull BinaryFunction<INPUT0,INPUT1,OUTPUT> |
FailableBinaryFunction.suppressExceptions(@Nonnull Consumer<? super Exception> handler,
OUTPUT defaultOutput)
Returns a function that catches the exceptions of this function, passes them to the given exception handler and returns the given default output instead.
|
default @Nonnull Collector<INPUT,RESULT> |
FailableCollector.suppressExceptions(@Nonnull Consumer<? super Exception> handler,
RESULT defaultResult)
Returns a collector that suppresses the exceptions of this collector, passes them to the given exception handler and returns the given default result instead.
|
default @Nonnull BinaryOperator<TYPE> |
FailableBinaryOperator.suppressExceptions(@Nonnull Consumer<? super Exception> handler,
TYPE defaultOutput) |
default @Nonnull UnaryOperator<TYPE> |
FailableUnaryOperator.suppressExceptions(@Nonnull Consumer<? super Exception> handler,
TYPE defaultOutput) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Collector<INPUT,RESULT>
A collector consumes objects of type
INPUT and produces a result of type RESULT. |
| Modifier and Type | Field and Description |
|---|---|
static @Nonnull Consumer<Object> |
Consumer.DO_NOTHING
Stores a consumer that does nothing.
|
| Modifier and Type | Method and Description |
|---|---|
default @Nonnull Consumer<INPUT> |
Consumer.after(@Nonnull Consumer<? super INPUT> consumer)
Returns the composition of the given consumer followed by this consumer.
|
default <INITIAL_INPUT> |
Consumer.after(@Nonnull UnaryFunction<? super INITIAL_INPUT,? extends INPUT> function)
Returns the composition of the given function followed by this consumer.
|
default @Nonnull Consumer<INPUT> |
Consumer.before(@Nonnull Consumer<? super INPUT> consumer)
Returns the composition of this consumer followed by the given consumer.
|
default @Nonnull Consumer<INPUT> |
Consumer.synchronize() |
| Modifier and Type | Method and Description |
|---|---|
default @Nonnull Consumer<INPUT> |
Consumer.after(@Nonnull Consumer<? super INPUT> consumer)
Returns the composition of the given consumer followed by this consumer.
|
default @Nonnull Consumer<INPUT> |
Consumer.before(@Nonnull Consumer<? super INPUT> consumer)
Returns the composition of this consumer followed by the given consumer.
|
Copyright © 2017. All rights reserved.