| 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.iterators |
Provides the iterators for the functional iterables.
|
| Modifier and Type | Method and Description |
|---|---|
default <FINAL_OUTPUT> |
FailableProducer.before(@Nonnull FailableUnaryFunction<? super OUTPUT,? extends FINAL_OUTPUT,? extends EXCEPTION> function)
Returns the composition of this producer followed by the given function.
|
static <INTERMEDIATE,OUTPUT,EXCEPTION extends Exception> |
FailableProducer.compose(@Nonnull FailableProducer<? extends INTERMEDIATE,? extends EXCEPTION> producer,
@Nonnull FailableUnaryFunction<? super INTERMEDIATE,? extends OUTPUT,? extends EXCEPTION> function)
Returns the composition of the given producer and function with a flexible exception type.
|
default @Nonnull FailableProducer<OUTPUT,EXCEPTION> |
FailableProducer.memoize(long duration)
Returns a producer that caches each object produced by this producer for the given duration in milliseconds.
|
default @Nonnull FailableProducer<OUTPUT,EXCEPTION> |
FailableProducer.synchronize()
Returns a producer that synchronizes on this producer.
|
| Modifier and Type | Method and Description |
|---|---|
static <INTERMEDIATE,OUTPUT,EXCEPTION extends Exception> |
FailableProducer.compose(@Nonnull FailableProducer<? extends INTERMEDIATE,? extends EXCEPTION> producer,
@Nonnull FailableUnaryFunction<? super INTERMEDIATE,? extends OUTPUT,? extends EXCEPTION> function)
Returns the composition of the given producer and function with a flexible exception type.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Producer<OUTPUT>
This functional interface models a method that produces objects of type
OUTPUT without requiring a parameter. |
| Modifier and Type | Field and Description |
|---|---|
protected @Nonnull FailableProducer<? extends ELEMENT,?> |
GeneratingIterator.producer |
| Modifier and Type | Method and Description |
|---|---|
static <ELEMENT> @Nonnull GeneratingIterator<ELEMENT> |
GeneratingIterator.with(@Nonnull FailableProducer<? extends ELEMENT,?> producer)
Returns a new generating iterator that generates an infinite number of elements with the given producer.
|
| Constructor and Description |
|---|
GeneratingIterator(@Nonnull FailableProducer<? extends ELEMENT,?> producer) |
Copyright © 2017. All rights reserved.