| 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 BinaryFunction<INPUT0,INPUT1,OUTPUT> |
FailableBinaryFunction.suppressExceptions()
Returns a function that suppresses the exceptions of this function and returns null instead.
|
default @Nonnull BinaryFunction<INPUT0,INPUT1,OUTPUT> |
FailableBinaryFunction.suppressExceptions(@Nonnull Consumer<? super Exception> handler)
Returns a function that catches the exceptions of this function, passes them to the given exception handler and returns null instead.
|
default @Nonnull BinaryFunction<INPUT0,INPUT1,OUTPUT> |
FailableBinaryFunction.suppressExceptions(@Nonnull Consumer<? super Exception> handler,
OUTPUT defaultOutput)
Returns a function that catches the exceptions of this function, passes them to the given exception handler and returns the given default output instead.
|
default @Nonnull BinaryFunction<INPUT0,INPUT1,OUTPUT> |
FailableBinaryFunction.suppressExceptions(OUTPUT defaultOutput)
Returns a function that suppresses the exceptions of this function and returns the given default output instead.
|
| 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 <INITIAL_INPUT0,INITIAL_INPUT1> |
BinaryFunction.after(@Nonnull UnaryFunction<? super INITIAL_INPUT0,? extends INPUT0> function0,
@Nonnull UnaryFunction<? super INITIAL_INPUT1,? extends INPUT1> function1)
Returns the composition of the given functions followed by this function.
|
default <FINAL_OUTPUT> |
BinaryFunction.before(@Nonnull UnaryFunction<? super OUTPUT,? extends FINAL_OUTPUT> function)
Returns the composition of this function followed by the given function.
|
static <OUTPUT> @Nonnull BinaryFunction<Object,Object,OUTPUT> |
BinaryFunction.constant(OUTPUT output)
Returns a binary function that always returns the given output.
|
default @Nonnull BinaryFunction<INPUT0,INPUT1,OUTPUT> |
BinaryFunction.propagateNull() |
default @Nonnull BinaryFunction<INPUT0,INPUT1,OUTPUT> |
BinaryFunction.replaceNull(OUTPUT defaultValue) |
Copyright © 2017. All rights reserved.