| 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.iterators |
Provides the iterators for the functional iterables.
|
| Modifier and Type | Method and Description |
|---|---|
default @Nonnull FailableUnaryOperator<TYPE,EXCEPTION> |
FailableUnaryOperator.after(@Nonnull FailableUnaryOperator<TYPE,? extends EXCEPTION> operator)
Returns the composition of the given operator followed by this operator.
|
default @Nonnull FailableUnaryOperator<TYPE,EXCEPTION> |
FailableUnaryOperator.before(@Nonnull FailableUnaryOperator<TYPE,? extends EXCEPTION> operator)
Returns the composition of this operator followed by the given operator.
|
static <TYPE,EXCEPTION extends Exception> |
FailableUnaryOperator.compose(@Nonnull FailableUnaryOperator<TYPE,? extends EXCEPTION> operator0,
@Nonnull FailableUnaryOperator<TYPE,? extends EXCEPTION> operator1)
Returns the composition of the given operators with a flexible exception type.
|
default @Nonnull FailableUnaryOperator<TYPE,EXCEPTION> |
FailableUnaryOperator.propagateNull() |
default @Nonnull FailableUnaryOperator<TYPE,EXCEPTION> |
FailableUnaryOperator.replaceNull(TYPE defaultOutput) |
| Modifier and Type | Method and Description |
|---|---|
default @Nonnull FailableUnaryOperator<TYPE,EXCEPTION> |
FailableUnaryOperator.after(@Nonnull FailableUnaryOperator<TYPE,? extends EXCEPTION> operator)
Returns the composition of the given operator followed by this operator.
|
default @Nonnull FailableBinaryOperator<TYPE,EXCEPTION> |
FailableBinaryOperator.after(@Nonnull FailableUnaryOperator<TYPE,? extends EXCEPTION> operator0,
@Nonnull FailableUnaryOperator<TYPE,? extends EXCEPTION> operator1)
Returns the composition of the given operators followed by this operator.
|
default @Nonnull FailableBinaryOperator<TYPE,EXCEPTION> |
FailableBinaryOperator.after(@Nonnull FailableUnaryOperator<TYPE,? extends EXCEPTION> operator0,
@Nonnull FailableUnaryOperator<TYPE,? extends EXCEPTION> operator1)
Returns the composition of the given operators followed by this operator.
|
default @Nonnull FailableBinaryOperator<TYPE,EXCEPTION> |
FailableBinaryOperator.before(@Nonnull FailableUnaryOperator<TYPE,? extends EXCEPTION> operator)
Returns the composition of this operator followed by the given operator.
|
default @Nonnull FailableUnaryOperator<TYPE,EXCEPTION> |
FailableUnaryOperator.before(@Nonnull FailableUnaryOperator<TYPE,? extends EXCEPTION> operator)
Returns the composition of this operator followed by the given operator.
|
static <TYPE,EXCEPTION extends Exception> |
FailableBinaryOperator.compose(@Nonnull FailableBinaryOperator<TYPE,? extends EXCEPTION> binaryOperator,
@Nonnull FailableUnaryOperator<TYPE,? extends EXCEPTION> unaryOperator)
Returns the composition of the given operators with a flexible exception type.
|
static <TYPE,EXCEPTION extends Exception> |
FailableUnaryOperator.compose(@Nonnull FailableUnaryOperator<TYPE,? extends EXCEPTION> operator0,
@Nonnull FailableUnaryOperator<TYPE,? extends EXCEPTION> operator1)
Returns the composition of the given operators with a flexible exception type.
|
static <TYPE,EXCEPTION extends Exception> |
FailableUnaryOperator.compose(@Nonnull FailableUnaryOperator<TYPE,? extends EXCEPTION> operator0,
@Nonnull FailableUnaryOperator<TYPE,? extends EXCEPTION> operator1)
Returns the composition of the given operators with a flexible exception type.
|
static <TYPE,EXCEPTION extends Exception> |
FailableBinaryOperator.compose(@Nonnull FailableUnaryOperator<TYPE,? extends EXCEPTION> unaryOperator0,
@Nonnull FailableUnaryOperator<TYPE,? extends EXCEPTION> unaryOperator1,
@Nonnull FailableBinaryOperator<TYPE,? extends EXCEPTION> binaryOperator)
Returns the composition of the given operators with a flexible exception type.
|
static <TYPE,EXCEPTION extends Exception> |
FailableBinaryOperator.compose(@Nonnull FailableUnaryOperator<TYPE,? extends EXCEPTION> unaryOperator0,
@Nonnull FailableUnaryOperator<TYPE,? extends EXCEPTION> unaryOperator1,
@Nonnull FailableBinaryOperator<TYPE,? extends EXCEPTION> binaryOperator)
Returns the composition of the given operators with a flexible exception type.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
UnaryOperator<TYPE>
This functional interface models a unary operator that maps an object of type
TYPE to another object of type TYPE. |
| Modifier and Type | Method and Description |
|---|---|
static <ELEMENT> @Nonnull InfiniteIterable<ELEMENT> |
InfiniteIterable.iterate(ELEMENT firstElement,
@Nonnull FailableUnaryOperator<ELEMENT,?> unaryOperator)
Returns a new infinite iterable that iterates over the sequence produced by the given operator from the given first element.
|
| Modifier and Type | Field and Description |
|---|---|
protected @Nonnull FailableUnaryOperator<ELEMENT,?> |
IteratingIterator.unaryOperator |
| Modifier and Type | Method and Description |
|---|---|
static <ELEMENT> @Nonnull IteratingIterator<ELEMENT> |
IteratingIterator.with(ELEMENT firstElement,
@Nonnull FailableUnaryOperator<ELEMENT,?> unaryOperator)
Returns a new iterating iterator that iterates over the sequence produced by the given operator from the given first element.
|
| Constructor and Description |
|---|
IteratingIterator(ELEMENT firstElement,
@Nonnull FailableUnaryOperator<ELEMENT,?> unaryOperator) |
Copyright © 2017. All rights reserved.