| 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 UnaryOperator<TYPE> |
FailableUnaryOperator.suppressExceptions() |
default @Nonnull UnaryOperator<TYPE> |
FailableUnaryOperator.suppressExceptions(@Nonnull Consumer<? super Exception> handler) |
default @Nonnull UnaryOperator<TYPE> |
FailableUnaryOperator.suppressExceptions(@Nonnull Consumer<? super Exception> handler,
TYPE defaultOutput) |
default @Nonnull UnaryOperator<TYPE> |
FailableUnaryOperator.suppressExceptions(TYPE defaultOutput) |
| Modifier and Type | Method and Description |
|---|---|
default @Nonnull UnaryOperator<TYPE> |
UnaryOperator.after(@Nonnull UnaryOperator<TYPE> operator)
Returns the composition of the given operator followed by this operator.
|
default @Nonnull UnaryOperator<TYPE> |
UnaryOperator.before(@Nonnull UnaryOperator<TYPE> operator)
Returns the composition of this operator followed by the given operator.
|
static <TYPE> @Nonnull UnaryOperator<TYPE> |
UnaryOperator.constant(TYPE output)
Returns an operator that always returns the given output.
|
static <TYPE> @Nonnull UnaryOperator<TYPE> |
UnaryOperator.identity()
Returns a unary operator that always returns its input argument.
|
default @Nonnull UnaryOperator<TYPE> |
UnaryOperator.propagateNull() |
default @Nonnull UnaryOperator<TYPE> |
UnaryOperator.replaceNull(TYPE defaultOutput) |
static <TYPE> @Nonnull UnaryOperator<TYPE> |
UnaryOperator.with(@Nonnull Map<? super TYPE,? extends TYPE> map)
Returns an operator that looks up the result in the given map or returns null if the input is not found in the map.
|
static <TYPE> @Nonnull UnaryOperator<TYPE> |
UnaryOperator.with(@Nonnull Map<? super TYPE,? extends TYPE> map,
TYPE defaultValue)
Returns an operator that looks up the result in the given map or returns the given default value if the input is not found in the map.
|
| Modifier and Type | Method and Description |
|---|---|
default @Nonnull UnaryOperator<TYPE> |
UnaryOperator.after(@Nonnull UnaryOperator<TYPE> operator)
Returns the composition of the given operator followed by this operator.
|
default @Nonnull BinaryOperator<TYPE> |
BinaryOperator.after(@Nonnull UnaryOperator<TYPE> operator0,
@Nonnull UnaryOperator<TYPE> operator1)
Returns the composition of the given operators followed by this operator.
|
default @Nonnull BinaryOperator<TYPE> |
BinaryOperator.after(@Nonnull UnaryOperator<TYPE> operator0,
@Nonnull UnaryOperator<TYPE> operator1)
Returns the composition of the given operators followed by this operator.
|
default @Nonnull BinaryOperator<TYPE> |
BinaryOperator.before(@Nonnull UnaryOperator<TYPE> operator)
Returns the composition of this operator followed by the given operator.
|
default @Nonnull UnaryOperator<TYPE> |
UnaryOperator.before(@Nonnull UnaryOperator<TYPE> operator)
Returns the composition of this operator followed by the given operator.
|
Copyright © 2017. All rights reserved.