| 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.
|
| Modifier and Type | Method and Description |
|---|---|
default @Nonnull Producer<OUTPUT> |
FailableProducer.suppressExceptions()
Returns a producer that suppresses the exceptions of this producer and returns null 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 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 Producer<OUTPUT> |
FailableProducer.suppressExceptions(OUTPUT defaultOutput)
Returns a producer that suppresses the exceptions of this producer and returns the given default output instead.
|
| Modifier and Type | Method and Description |
|---|---|
default <FINAL_OUTPUT> |
Producer.before(@Nonnull UnaryFunction<? super OUTPUT,? extends FINAL_OUTPUT> function)
Returns the composition of this producer followed by the given function.
|
static <OUTPUT> @Nonnull Producer<OUTPUT> |
Producer.constant(OUTPUT output)
Returns a producer that always produces the given output.
|
default @Nonnull Producer<OUTPUT> |
Producer.memoize(long duration) |
default @Nonnull Producer<OUTPUT> |
Producer.synchronize() |
| Modifier and Type | Method and Description |
|---|---|
static <ELEMENT> @Nonnull InfiniteIterable<ELEMENT> |
InfiniteIterable.generate(@Nonnull Producer<? extends FailableProducer<? extends ELEMENT,?>> producer)
Returns a new infinite iterable that generates an infinite number of elements with the producer produced by the given producer.
|
Copyright © 2017. All rights reserved.