| 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 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.
|
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> |
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.
|
default @Nonnull FailableBinaryOperator<TYPE,EXCEPTION> |
FailableBinaryOperator.propagateNull() |
default @Nonnull FailableBinaryOperator<TYPE,EXCEPTION> |
FailableBinaryOperator.replaceNull(TYPE defaultOutput) |
| Modifier and Type | Method and Description |
|---|---|
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> |
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 |
BinaryOperator<TYPE>
This functional interface models a binary operator that maps two objects of type
TYPE to another object of type TYPE. |
| Modifier and Type | Method and Description |
|---|---|
default <EXCEPTION extends Exception> |
FiniteIterable.reduce(@Nonnull FailableBinaryOperator<ELEMENT,? extends EXCEPTION> operator)
Returns the value reduced by the given operator or null if this iterable is empty.
|
default <EXCEPTION extends Exception> |
FiniteIterable.reduce(@Nonnull FailableBinaryOperator<ELEMENT,? extends EXCEPTION> operator,
ELEMENT element)
Returns the value reduced by the given operator or the given element if this iterable is empty.
|
Copyright © 2017. All rights reserved.